Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Assign variables as if they were an array:
SUBMITTED BY:
henry1874w
DATE:
June 27, 2017, 5:05 p.m.
FORMAT:
Text only
SIZE:
137 Bytes
Raw
Download
Tweet
HITS:
258
Go to comments
Report
<?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.";
?>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus