Re: PHP textbook suggestions?

From: Date: Wed, 11 Apr 2007 19:09:52 +0000
Subject: Re: PHP textbook suggestions?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-252619@lists.php.net to get a copy of this message
On 4/10/07, Richard Lynch <ceo@l-i-e.com> wrote:
print 'The cost is ' . $cost; NOT print "The cost is $cost"; AND CERTAINLY NOT print ("The cost is $cost"); echo "The cost is ", $cost; If you're going to be this picky, you'd better write your own textbook... :-) Perhaps instead of a textbook, just use http://php.net/manual
The manual is not nearly enough reference for a beginning students. You illustrate the problem with quotes in your example above-- why double quotes with no variable being interpolated? The . is the documented string operator for concatenation... that's one of the reasons I dislike the unneeded parentheses with the print function-- then I have to explain-- before I want to-- arguments to functions, which is necessary to explain the comma. c

« previous php.general (#252619) next »