count() function can also be used to access certain elements in the array : Array Function « Data Structure « PHP
- PHP
- 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];
?>
Related examples in the same category