|
The same PHP Fan - 06 Sep 2008
Oh yes and I almost forgot to add (for those familiar with TADS):
myFace.ioCrackIn(Me, smile)
The same PHP Fan - 06 Sep 2008
Oh yes and I almost forgot to add (for those familiar with TADS):
myFace.ioCrackIn(Me, smile)
A PHP Fan - 06 Sep 2008
I found this book today (yesterday actually, but I haven't slept yet) and have spent most of the evening and night reading it. I just want to say that after reading everything up to this point I had to pause to jump up and down while shouting and smiling. Php (and this book especially) seems to be going to my head. Provided I don't have a cerebral meltdown I'll most certainly learn (and try to use) as much php I can.
I just wanted to mention it.
Hm... I wonder if php can be spoken (and understood) on the streets somewhere..?
The same PHP User - 06 Sep 2008
The comment-parser stripped out my spaces and tabs, why the two code-examples look the same, which they shouldnt. The top one had Lots-lines beginning with lots of spaces to make it nice-looking, while the bottom one had the same amount of beginning row-spaces as the 2nd example in the original article had...
A PHP User - 06 Sep 2008
Maybe it is considered good form not to do so, but I miss you showing the beginners that strings are not constrained to one line, even without using heredoc.
For example, the above code could be written as:
<?php
if ($foo == $bar) {
print "Lots of stuff here
Lots of stuff here
Lots of stuff here
Lots of stuff here
Lots of stuff here
Lots of stuff here
Lots of stuff here
Lots of stuff here
Lots of stuff here";
}
?>
Or, more accurate, but less viewable:
<?php
if ($foo == $bar) {
print "Lots of stuff here
Lots of stuff here
Lots of stuff here
Lots of stuff here
Lots of stuff here
Lots of stuff here
Lots of stuff here
Lots of stuff here
Lots of stuff here";
}
?>
Just remember to escape (or use heredoc).
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.
|