Remove bad example.

The variable $juice is not defined. The example doesn't make any sense.
Syntactically the interpolation would work had the correct variable name been
used. So I'm removing this portion of the example since it doesn't demonstrate
anything useful.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@332340 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Sherif Ramadan 2013-12-10 13:52:31 +00:00
parent a2db0ec375
commit bf46686034

View file

@ -542,7 +542,6 @@ $juices = array("apple", "orange", "koolaid1" => "purple");
echo "He drank some $juices[0] juice.".PHP_EOL;
echo "He drank some $juices[1] juice.".PHP_EOL;
echo "He drank some juice made of $juice[0]s.".PHP_EOL; // Won't work
echo "He drank some $juices[koolaid1] juice.".PHP_EOL;
class people {
@ -567,7 +566,6 @@ echo "$people->robert greeted the two $people->smiths."; // Won't work
<![CDATA[
He drank some apple juice.
He drank some orange juice.
He drank some juice made of s.
He drank some purple juice.
John Smith drank some apple juice.
John Smith then said hello to Jane Smith.