Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

array fill key use in php project

// define array
$array = ['a', 'b', 'c'];
 
// without list()
$a = $array[0];
$b = $array[1];
$c = $array[2];
 
// with list()
list($a, $b, $c) = $array;
Source by code.tutsplus.com #
 
PREVIOUS NEXT
Tagged: #array #fill #key #php #project
ADD COMMENT
Topic
Name
6+9 =