At night, I saw a "PHP program design" in the series. Although I didn't study, I found three errors in the end of Chapter 5.
The first place: on page 136, the best code, the Foreach cycle in the code
Foreach ($ matches)
[0] AS $ u)
{
$ link = $ PHP_SELF. '? url ='. Urlencode ($ u);
echo "
/ n";
}
Clearly
Foreach ($ matches as $ u)
{
$ link = $ PHP_SELF. '? url ='. Urlencode ($ u);
echo "
/ n";
}
Do you have a $ 0?
The second place: 146 pages fourth line (including code)
If the value in List ()
More than the array, the excess value will be set to NULL:
$ Person = array ('name' => 'Fred', 'agn' => 35, 'wife' => 'betty');
List ($ SN, $ A) = $ Person; // $ n is 'Fred', $ A is '35'
It can be seen that this code is obviously the value in the array in the number of the value in the array in List ().
Third: 149 positive number third line
IF (Array_Key_EXISTS (Key, Array) {...}
The function returns a Boolean value.
The Boolean value indicates whether the second parameter is legally healthy in arrays, which is given by the first parameter.
Do people know about PHP? Learn about Array_Key_exists ()? Named should be "The Boolean value indicates whether the second parameter is legally healthy, the array is given by the first parameter", so it is.
Collapse, hey, how good a book is actually translated into such a me, a bad grain.