mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
a2db0ec375
commit
bf46686034
1 changed files with 0 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue