Assign variables as if they were an array:
<?php
$my_array = array("Dog","Cat","Horse");

list($a, $b, $c) = $my_array;
echo "I have several animals, a $a, a $b and a $c.";
?>
by გიორგი ბაკაშვილი
4 years ago
PHP
Array
PHP official doc
0
Pro tip: use ```triple backticks around text``` to write in code fences