How can I access the array values in php? -
this question has answer here:
- how can access array/object? 4 answers
my array this:
[name] => array ( [0] => mark )
since array name value array called "category":
category = array(name);
i'm having trouble getting value of
name[0] = "mark"
pls me out!
$result = $myarray['name'][0];
since array 2-dimensional need use 2 indexes reach bottom-layer of values.
Comments
Post a Comment