Source Code:
(back to article)
<?php $fruits = ["apple", "banana", "orange"]; list($fruit1, $fruit2, $fruit3) = $fruits; echo $fruit1 . "\n"; // Output: apple echo $fruit2 . "\n"; // Output: banana echo $fruit3; // Output: orange
Result:
Report an issue