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
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
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:
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
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
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
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
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
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
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
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
11 matches
Mail list logo