Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

get element by index array php

$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: #element #index #array #php
ADD COMMENT
Topic
Name
3+5 =