"pear", "c" => "orange", "d" => "peach"); print_r ($fruit) ;?>"/> "pear", "c" => "orange", "d" => "peach"); print_r ($fruit) ;?>">
Home >Backend Development >PHP Tutorial >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); ?>