There is a list() function (page 16)
Function names in PHP are case INsensitive, variable names are not (page 17)
Although semicolons are required at the end of a block, they are not at the end of a ?> section. (page 18)
PHP supports both the # type comment as both the C++ style// and the C style/* */. It also has this weird side effect on closing the # type comment on one line. You can do <?php $foo = 4; #Set foo ?> <?php echo $foo?> (page 19-21).
Apparently, $| is not a valid variable name. There goes perl compatibility
Defining constants is done in a very C like way... but not quite. define('FOO',5); (page 23)
The list of PHP core language keywords include words like endfor, $this, __sleep, endforeach, __wakeup, endif, old_function and switch. That last one is the worst of all... If I wanted switch, I would have used some perl module
There are function aliasses. is_int() has is_integer(). (page 24)
An object with no functions or values is also considered false (page 27)
There is an array() function. (page 27)
There seems no way (at this part of the book) to distinguish the difference between a scalar and an array. They both use the $ sigil.(page 27)
sort() sorts the array by reference, not by value. (page 28)
There is more than one sort function. (page 28)
But...
Cool is that they have the foreach($foo as $bar => $list) { echo $bar; } which will be in Perl 6. (page 27)
I'm about one third through chapter two.. I predict some more annoyances pretty soon.
That's not all... (Score:2)
works without problem, but you do need the p
Re:That's not all... (Score:1)