tags:

views:

872

answers:

2

how save object to arraylist like C# in php

+3  A: 

There is no distinction between object arrays and ArrayLists in PHP due to PHP's dynamic typing.

Edit

Just in case this is what you meant:

$myArray[] = $obj;

Will append the object $obj onto the array $myArray.

Jamie
A: 

How to insert an item into an array: http://www.justin-cook.com/wp/2006/08/02/php-insert-into-an-array-at-a-specific-position/

AaronLS
A comment for the downvote would be nice.
AaronLS