Friday, May 18, 2018

Setting array elements

$ary[] = "blue";
print $ary[0] . "\n";
$ary[] = "red";
print $ary[0] . "-" . $ary[1];
Output:
blue
blue-red

No comments:

Post a Comment

here docs

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