array in php example August 12, 2012 Php Program: array.php <?php $myarray=array(1,2,3,4, 5 => 11, 26 => 2,5, 11 => 10); print_r($myarray); ?> Output: Thanks for reading this post…………!!! Share this: Share on Facebook (Opens in new window) Facebook Share on X (Opens in new window) X Email a link to a friend (Opens in new window) Email Print (Opens in new window) Print Like this:Like Loading... Related Leave a comment