Re: [PHP] Ranges for case statement and a WTF moment.

2011-04-07 Thread Richard Quadling
On 6 April 2011 21:08, David Harkness wrote: > On Tue, Apr 5, 2011 at 8:28 AM, Richard Quadling > wrote: >> >> php -r "var_dump(10...19);" >> >> Interesting output ... >> >> string(6) "100.19" >> >> And that took me a little while to work out. >> >> It's all to do with PHP's type juggling. >> >>

Re: [PHP] the best 1 book for php

2011-04-07 Thread Richard Quadling
On 7 April 2011 05:15, Kirk Bailey wrote: > If I only had 1 book on php, what would it be? I wouldn't. Not a book JUST on PHP. The book which I'm actually enjoying the most is "Code Complete" by Steve McConnell. It is subtitled "A Practical Handbook of Software Construction". I am a self taught

RE: [PHP] Ranges for case statement and a WTF moment.

2011-04-07 Thread Ford, Mike
> -Original Message- > From: David Harkness [mailto:davi...@highgearmedia.com] > Sent: 06 April 2011 21:08 > To: Richard Quadling; PHP General list > Subject: Re: [PHP] Ranges for case statement and a WTF moment. > > On Tue, Apr 5, 2011 at 8:28 AM, Richard Quadling > wrote: > [...] > > 10

Re: [PHP] Ranges for case statement and a WTF moment.

2011-04-07 Thread Richard Quadling
And all this is shown when you ... php -r "print_r(array_map(function(&$token){if(is_array($token)){$token[0] = token_name($token[0]);} return $token;},token_get_all(' Array ( [0] => T_OPEN_TAG [1] => 1 ) [1] => Array ( [0] => T_ECH

Re: [PHP] the best 1 book for php

2011-04-07 Thread Andre Polykanine
Hello Kirk, Php manual from php.net :-). -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion Original message From: Kirk Bailey

Re: [PHP] the best 1 book for php

2011-04-07 Thread Andy McKenzie
On Thu, Apr 7, 2011 at 12:15 AM, Kirk Bailey wrote: > If I only had 1 book on php, what would it be? > > -- > end > > Very Truly yours, >                 - Kirk Bailey, >                   Largo Florida > My most common reference is, as other people have said, www.php.net. But when I reach for a

Re: [PHP] the best 1 book for php

2011-04-07 Thread tedd
At 12:15 AM -0400 4/7/11, Kirk Bailey wrote: If I only had 1 book on php, what would it be? The Bible. Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] the best 1 book for php

2011-04-07 Thread Richard Quadling
On 7 April 2011 13:51, Andy McKenzie wrote: > On Thu, Apr 7, 2011 at 12:15 AM, Kirk Bailey wrote: >> If I only had 1 book on php, what would it be? >> >> -- >> end >> >> Very Truly yours, >>                 - Kirk Bailey, >>                   Largo Florida >> > > My most common reference is, as o

Re: [PHP] the best 1 book for php

2011-04-07 Thread Richard Quadling
On 7 April 2011 14:41, tedd wrote: > At 12:15 AM -0400 4/7/11, Kirk Bailey wrote: >> >> If I only had 1 book on php, what would it be? >> > > The Bible. I've reliably informed that many people believe the bible covers such things as the beginning of the universe, the dawn of man and aliens, but P

RE: [PHP] the best 1 book for php

2011-04-07 Thread Jay Blanchard
[snip] I've reliably informed that many people believe the bible covers such things as the beginning of the universe, the dawn of man and aliens, but PHP? That's a new one. [/snip] I think it is in the Psalms somewhere. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] the best 1 book for php

2011-04-07 Thread Marc Guay
session_start(); // genesis // do stuff session_destroy(); // revelation -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] the best 1 book for php

2011-04-07 Thread Yousif Masoud
On Thu, 2011-04-07 at 00:15 -0400, Kirk Bailey wrote: > If I only had 1 book on php, what would it be? > > -- > end > > Very Truly yours, > - Kirk Bailey, > Largo Florida > > kniht >+-+ >

Re: [PHP] the best 1 book for php

2011-04-07 Thread Negin Nickparsa
introduction 2 PHP and MySql,Larry ullman

Re: [PHP] the best 1 book for php

2011-04-07 Thread sono-io
On Apr 7, 2011, at 7:19 AM, Marc Guay wrote: > session_start(); // Genesis > > // do stuff > > session_destroy(); // Revelation Now THAT'S clever! =:) I'm half way though "Beginning PHP 5.3" by Matt Doyle and I like it a lot. Very readable, and up-to-date. Marc -- PHP Gener

Re: [PHP] Ranges for case statement and a WTF moment.

2011-04-07 Thread David Harkness
On Thu, Apr 7, 2011 at 2:16 AM, Richard Quadling wrote: > And all this is shown when you ... > > php -r "print_r(array_map(function(&$token){if(is_array($token)){$token[0] > = token_name($token[0]);} return $token;},token_get_all(' 10...19;')));" > Woah, that's a very nifty trick! I like PHP more

Re: [PHP] the best 1 book for php

2011-04-07 Thread Donovan Brooke
Kirk Bailey wrote: If I only had 1 book on php, what would it be? I have to disagree with the php.net 'docs' being the best "book". Though most of us will have a php.net tab open in your browser every time we write code, it's not the same learning that comes with a good book IMO. Reading a

Re: [PHP] the best 1 book for php

2011-04-07 Thread Paul M Foster
On Thu, Apr 07, 2011 at 02:54:45PM -0500, Donovan Brooke wrote: > Kirk Bailey wrote: > >If I only had 1 book on php, what would it be? > > > I have to disagree with the php.net 'docs' being the best "book". > > Though most of us will have a php.net tab open in your browser every > time we write