PHP List
The
list
function is used to work with lists.
See the example:
<?php
$arr = ['1', '2', '3'];
list($a, $b, $c) = $arr;
echo "Elems: $a, $b, $c";
?>
Code execution result:
'Elems: '1', '2', '3''
The
list
function is used to work with lists.
See the example:
<?php
$arr = ['1', '2', '3'];
list($a, $b, $c) = $arr;
echo "Elems: $a, $b, $c";
?>
Code execution result:
'Elems: '1', '2', '3''