Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php array get value at index

$array = array('foo' => 'bar', 33 => 'bin', 'lorem' => 'ipsum');
$array = array_values($array);
echo $array[0]; //bar
echo $array[1]; //bin
echo $array[2]; //ipsum
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #array #index
ADD COMMENT
Topic
Name
7+2 =