# php.NativeArray php.NativeAssocArray

**URL:** <https://community.haxe.org/t/php-nativearray-php-nativeassocarray/2474>\
**Category:** Haxe\
**Tags:** haxe-php\
**Created:** [May 26, 2020, 5:54am UTC](https://community.haxe.org/t/php-nativearray-php-nativeassocarray/2474 "2020-05-26T05:54:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rivetweb](https://community.haxe.org/user_avatar/community.haxe.org/rivetweb/32/1338_2.png) [@rivetweb](https://community.haxe.org/u/rivetweb)\
**Post date:** [May 26, 2020, 5:54am UTC](https://community.haxe.org/t/php-nativearray-php-nativeassocarray/2474/1 "2020-05-26T05:54:55Z")

</div>

haxe native array work only with php functions Globals.array\_push, Globals.array\_pop and etc?

how to work with native arrays from haxe?

---

<div class="post-metadata">

**Author:** ![RealyUniqueName](https://community.haxe.org/user_avatar/community.haxe.org/realyuniquename/32/10_2.png) [@RealyUniqueName](https://community.haxe.org/u/RealyUniqueName)\
**Post date:** [May 27, 2020, 9:29am UTC](https://community.haxe.org/t/php-nativearray-php-nativeassocarray/2474/2 "2020-05-27T09:29:28Z")

</div>

Almost the same way you work with it in php:

```haxe
import php.Globals.*;
import php.Syntax;

var a = new NativeArray();
a['hello'] = 'world';
array_push(a, 123);
unset(a['hello']);
//etc

```
