How to create multi dimensional array in php without specifying index -


i newbie programmer of php. how should create array without specifying size of array.i have tried using

$items = array(); 

how can add array element? without having specify index. in advance feedback.

// define array  $item = array();  // adding multi dimensional array  array_push($item, array('name'=>'pen','qty'=>1)); 

you may nest array more levels same method mentioned above.


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -