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
Post a Comment