Yes, Kamy, the coding is certainly lacking in discipline (e.g. no discussion of single v. double quotes but inconsistent use of both all over the place) and there are some features of the code which are introduced for the first time and then never explained, which is very confusing for a beginner. And yes, there is a paragraph about sloppy coding but then a plethora of examples in which they play fast and loose with the coding themselves. Most frustrating for a beginner who would like to do things properly from day 1.
I'm not sure what you mean by logical functions, though. Can you explain?
Btw Planetsim, there is an O'Reilly book by Rasmus, which would sort of meet your criteria of looking for the original source. I have to say I didn't buy it because I feared that Rasmus' casual genius might be a bit tough going for a complete beginner. Having said that, I haven't actually looked at the content in any detail. On the other hand, I've found O'Reilly very thorough and consistent so far (XHTML and Javascript already on my shelf). Decisions, decisions ...
At the end of the day I need a book. I read about PHP on the train on the way to work. It's the only peaceful half hour in my day.
Norman