Nope, there is no array_push() equivalent for associative arrays because there is no way determine the next key.
You’ll have to use
$arrayname[indexname] = $value;
Nope, there is no array_push() equivalent for associative arrays because there is no way determine the next key.
You’ll have to use
$arrayname[indexname] = $value;