Question: How can I create group of values in a php array just like we can use the json format in javascript to group values.
Example JS:
var jsarray = [{value1,value2},{value3,value4}]
Is there something similar in PHP.
I know I can use:
$phparray = array(array(value1,value2), array(value3,value4));
But just in case something cleaner way is out there which I don't know about?