Mega Code Archive

 
Categories / Php / Data Type
 

Count() function can also be used to access certain elements in the array

<?php   $employee []= "A";   $employee []= "B";   $employee []= "C";   $employee []= "D";   echo $employee [count ($employee)-1];  ?>