Re: PHP textbook suggestions?

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

 



On 4/5/07, Zoltán Németh <znemeth@xxxxxxxxxxxxxx> wrote:
2007. 04. 5, csütörtök keltezéssel 12.52-kor Chris Lott ezt írta:
> Looking for suggestions for a PHP textbook for an "Intro to Web
> Programming" class that will be using PHP5 and MySQL. This is a
> first-semester course, so no programming experience required.
>
> It would be nice to have a text that adhered to (what I see as) good
> practice using quotation marks... i.e.
>
> print 'The cost is ' . $cost;
> NOT
> print "The cost is $cost";
> AND CERTAINLY NOT
> print ("The cost is $cost");
>
> echo substr('abcdef', 1);
> NOT
> echo substr("abcdef", 1);

there is no difference between the above two echo statements. I'm almost
sure that there is absolutely zero difference between the two kind of
quotes when there are no variables involved

greets
Zoltán Németh

I prefer using double quotes (" ") around strings, because i don't
have to escape single quotes (' ') in words like I'm, don't, etc.

Tijnema

>
>
> I will be teaching, so a book that a student can-- before the class--
> work through and understand is good-- doesn't have to be a traditional
> textbook! But it shouldn't be a reference manual either.
>
> c
> --
> Chris Lott
>

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



--
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