"pear", "c" => "orange", "d" => "peach"); print_r ($fruit) ;?>"/> "pear", "c" => "orange", "d" => "peach"); print_r ($fruit) ;?>">
Home > Article > Backend Development > PHP array function array_PHP tutorial
1. Grammar
array(key=>value)
2. Example
<?php $fruit=array("a"=>"apple","b"=>"pear","c"=>"orange","d"=>"peach"); print_r($fruit); ?>