PHP Ajouter au tableau associatif
// for php 5.4+
$data += [$key => $value];
// for php 5.4-
$data += array($key => $value);
Wrong Warbler
// for php 5.4+
$data += [$key => $value];
// for php 5.4-
$data += array($key => $value);
$a1=['aa'=>'123' , 'bb'=>'454'];
$a1 = array_merge( $a1 , ['a'=>1,'b'=>2] ) ;
$arr = array(
"name" => "jonh",
"Mob" => "588555",
"Email" => "[email protected]"
);
$arr['Country'] = "United State";