Re: PHP textbook suggestions?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4/10/07, Richard Lynch <ceo@xxxxxxxxx> 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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux