Source Code:
(back to article)
<?php $name = "John"; $age = 30; $city = "New York"; $myArray = compact("name", "age", "city"); print_r($myArray); ?>
Result:
Report an issue