PHP 5 for Dummies Error Corrections

LocationIn BookCorrection
Page 43, echo _<p>Hello World!</p>_
Underscores should be quotes
echo "<p>Hello World!</p>"
Page 45, echo _<p>Hello World!</p>_
Underscores should be quotes
echo "<p>Hello World!</p>"
Page 46, echo _<p>Hello\n World!</p>_
Underscores should be quotes
echo "<p>Hello\n World!</p>"
Page 46, echo _<p>Hello<br> World!</p>_
Underscores should be quotes
echo "<p>Hello<br> World!</p>"
Page 61, $age = __;
Underscores should be quotes.
$age = "";
Page 81, $string = _Hello World!_;
$string = _Hello World!_;
Underscores should be quotes.
$string = "Hello World!";
$string = "Hello World!";
Page 83, $name = "Sam";
$output1 = _$name_;
$output2 = _$name_;
echo $output1;
echo $output2;
Underscores should be quotes
$string = "Hello World!";
$string = "Hello World!";
Page 84, $string = _Where is Sally_s house_;
echo $string;
Underscores should be quotes
$string = "Where is Sally's house";
echo $string;
Page 85, $string1 = _Hello;
$string2 = _World!_;
$stringall = $string1.$string2;
echo $stringall;
Underscores should be quotes.
$string1 ="Hello"
$string2 = "World!";
$stringall = $string1.$string2;
echo $stringall;
Page 85, $stringall = $string1._ _.$string2
Underscores should be quotes.
$stringall = $string1" "$string2
Page 143, if(!egreg("^S[a-z]*",$string)
egreg is a typo. The first g is an extra letter.
if(!ereg("^S[a-z]*",$string)
Page Cheat sheet, first row $colors[1]=red
$colors[2]=blue
Keys are the wrong numbers
$colors[0]=red
$colors[1]=blue
Page Cheat sheet, third row $colors[1]=red
$colors[2]=blue
Keys are the wrong numbers
$colors[0]=red
$colors[1]=blue