I don't know what you need, but you need to insert a couple of values ββinto an array, this might be your solution:
$hashes_array = array(); array_push($hashes_array, array( 'name' => 'something1', 'url' => 'http://www1', )); array_push($hashes_array, array( 'name' => 'something2', 'url' => 'http://www2', ));
After that, $hashes_array should look like this (each element of the larger array is the array itself - an associative array with two keys and two corresponding values):
[ ['name' => 'something1', 'url' => 'http://www1'], ['name' => 'something2', 'url' => 'http://www2'] ]
source share