Re: [nyphp-talk] Whats the difference between an apostrophe and a quotation

2008-01-12 Thread Guilherme Blanco
There are 3 types of quotes. $var = 'test'; Single quotes: Not parsed by PHP compiler... echo 'Some $var'; // Will print: Some $var Double quotes: Parsed by compiler... echo "Some $var"; // Will print: Some test Backtick: Processed by console echo `ps -aux`; // Will print running processes

Re: [nyphp-talk] Question about explicit returns

2008-01-12 Thread Tim Gales
Daniel Convissor wrote: [...] Regarding the number of returns, it's better to minimize the number of exit points because it simplifies the function contract. If you have to modify the code later, there are fewer exit points to consider. Yeah, I've heard that point of view before. Sure, you c

Re: [nyphp-talk] Whats the difference between an apostrophe and a quotation

2008-01-12 Thread tedd
At 12:44 AM +0200 1/12/08, Jonathan Wagener wrote: Hi, whats the difference between an apostrophe and a quotation in php? What's the difference? "This $string is evaluated by the compiler" 'and this $string isn't' Cheers, tedd -- --- http://sperling.com http://ancientstones.com http:

Re: [nyphp-talk] Question about explicit returns

2008-01-12 Thread tedd
At 12:45 PM -0500 1/11/08, Tod Dailey wrote: The validity of one of my coding practices that I've used for awhile has recently come under question. I've tried to listen to arguments on both sides, and there seems to be good points on both ends, but my question still hasn't been answered to my s

Re: [nyphp-talk] Problem with MySQL UPDATE syntax

2008-01-12 Thread tedd
At 9:39 AM -0600 1/11/08, Tony Furnivall wrote: Hi! I'm having a problem with the UPDATE syntax for MySQL (aside - I hate products that tell me I have a syntax problem, but don't tell me what it is - and then suggest that I go RTFM which is equally uninformative:-() I'm replacing the entir

Re: [nyphp-talk] Why do "cool kids" choose PHP to build websites instead of Java

2008-01-12 Thread Tim Gales
Elliotte Harold wrote: Michael Southwell wrote: ah, no, these answers are exactly right, given that $a is an integer, $b and $c are strings, and $d is unset. $b and $c when converted to integers for the purpose of comparison in #1 and #3 turn into 0 (zero) so the comparisons are true. #2 comp

Re: [nyphp-talk] Namespaces

2008-01-12 Thread tedd
At 11:23 AM -0500 1/11/08, Jim Hendricks wrote: When Palm opened up the platform for 3rd party programming, they created a registration page for the database type id's. This allowed for global registration which would eliminate namespace collissions so long as programmers registered the id's t

Re: [nyphp-talk] Question about explicit returns

2008-01-12 Thread Daniel Convissor
On Fri, Jan 11, 2008 at 05:23:35PM -0500, Michael B Allen wrote: > I think the nesting helps you understand the code. But things get harder to understand if you're nested so far that half of the code on the line flies off the right hand side of the screen (or wraps). Plus to figure out what th

Re: [nyphp-talk] Why do "cool kids" choose PHP to build websites instead of Java

2008-01-12 Thread David Krings
Elliotte Harold wrote: Anthony Wlodarski wrote: Zesty Ping never learned === apparently. This one's for you Zesty: http://www.php.net/manual/en/language.operators.comparison.php "===" introduced type facing in php4 so it is a moot point or just poor reading skills on some developers parts if

Re: [nyphp-talk] Why do "cool kids" choose PHP to build websites instead of Java

2008-01-12 Thread Elliotte Harold
Anthony Wlodarski wrote: Zesty Ping never learned === apparently. This one's for you Zesty: http://www.php.net/manual/en/language.operators.comparison.php "===" introduced type facing in php4 so it is a moot point or just poor reading skills on some developers parts if they missed this essent

Re: [nyphp-talk] Why do "cool kids" choose PHP to build websites instead of Java

2008-01-12 Thread Elliotte Harold
Michael Southwell wrote: ah, no, these answers are exactly right, given that $a is an integer, $b and $c are strings, and $d is unset. $b and $c when converted to integers for the purpose of comparison in #1 and #3 turn into 0 (zero) so the comparisons are true. #2 compares two different strin