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
2009-04-02 02:56:37
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
2009-04-02 03:00:13
A comment for the downvote would be nice.
AaronLS
2010-08-24 21:36:19