|
deathGod - 06 Sep 2008
and i don't know why people are still complaining. There has only been one or two hard pages we have come accross.
And thanks to all the people doing examples here, they really do help a lot.
deathgod - 06 Sep 2008
hey no swearing but i agree with you.
Tip:The best way to learn php is to adopt an open-source project written in php and experiment with it. I'm currently playing with osCommerce and i have a vague notion of half the things here even before i read them. Like for example prototypes: i had no idea what he said and it got me all confused but after 30minutes of re-reading the section i figured out i already knew what it was just by messing around with osCommerce.
Sweet isn't it!
A PHP User - 06 Sep 2008
http://www.usphp.com/about.prototypes.html
go here to learn ALL about reading and understand prototypes.
A PHP User - 06 Sep 2008
why don't you shut up complaining, the book is free, it's here without it It would have taken months ifyou don't have the mind for a programmer get the fuck out.
A PHP User - 06 Sep 2008
uhm... this book was good for about 3 sections. Now it sucks.
I give up.
Dominic Son - 06 Sep 2008
Here's my example of this section:
Let's make a variable and call it $mo_money.
- isset ($mo_money) returns 'true' if there was ANY amount set for $mo_money.
- empty ($mo_money) returns 'true' only if the amount is set to 0 - and in programming 0 is false.
If you can honestly picture the 2nd paragraph as a beginner, your mind has grown : P
Finally unset($mo_money) seems to delete the variable in this function..
TxtEdMacs - 06 Sep 2008
On the empty() function I was surprised it returnes a true when the boolean variable was set as false. However, more troubling (in the documentation) a 0, particularly an integer is considered empty. I must admit my previous use of an empty() function was testing for unset or null values, which would trash my computations. However, a zero integer value could be perfectly a valid set value, e.g. a beginning to an increment or even a cash balance. Not sure I like the php empty() function.
A PHP User - 06 Sep 2008
should i be in a different chapter? all of a sudden, i am LOST!! i was doing great, "flipped the page", then BAM .. Lost.
what do all of these prototypes do? or should i just read on in anticipation?
ugh.
A PHP User - 06 Sep 2008
Empty is sort of a confusing name. isfalse(); would probably make more sense, but anyways back to the book.
What is up with isset being able to have more than 1 parameter?
ljubiccica - 06 Sep 2008
one ) missing:
use the not operator !, as in if (!isset($foo).
should be
use the not operator !, as in if (!isset($foo)).
I LOVE THIS BOOK!!!
Jason/netnerd85@hotmail.com - 06 Sep 2008
Please add examples and further explanation to this section, cheers.
Add comment
Please note that by posting a comment here you are committing it to the public domain. This is important so that others can make use of your code themselves, and also so that I can incorporate helpful notes directly into the main text. Comments are limited to 2000 characters in length.
If you are reporting an error in the content, please tell me directly.
|