<?php $pArray = array(1=>"player-1", 2=>"player-2", 3=>"player-3");
echo "hard referencing array<br/>";
echo $pArray['1']."<br />"; // returns "player-1" to the browser
echo $pArray['2']."<br />"; // returns "player-2" to the browser
echo $pArray['3']."<br />"; // returns "player-3" to the browser ?>
|