Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php get last index of array

$array = ['key1' => 'value1', 'key2' => 'value2', 'key3' => 'value3'];
$result = end($array);
Source by www.gtechhub.com #
 
PREVIOUS NEXT
Tagged: #php #index #array
ADD COMMENT
Topic
Name
6+2 =