count() function can also be used to access certain elements in the array : Array Function : Data Structure PHP Source Code


PHP Source Code » Data Structure » Array Function »

 

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];
 ?>
           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Data Structure
» Array Function