programming-examples/php/Arrays/Display array values within a string.php

4 lines
305 B
PHP
Raw Normal View History

2019-11-15 12:59:38 +01:00
<?php
$color = array('white', 'green', 'red', 'blue', 'black');
echo "The memory of that scene for me is like a frame of film forever frozen at that moment: the $color[2] carpet, the $color[1] lawn, the $color[0] house, the leaden sky. The new president and his first lady. - Richard M. Nixon"."\n";
?>