Friday, April 28, 2017

list example

<?php
$colors = array("blue", "red", "green");
list($blue, $red, $green) = $colors;
echo "colors: $blue $red $green";
?>
Output:
colors: blue red green

No comments:

Post a Comment

here docs

$x = <<<THE_END PHP stands for "PHP: Hypertext Preprocessor". The acronym "PHP" is therefore, usually referre...