strings and

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Is there something build into php where or means something?

For example,

SELECT * FROM table1 WHERE col1 = AND col2 = ;


----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==---- The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----

Re: strings and

Quoted text here. Click to load it

Umm...that's SQL, not PHP.  However, PHP does use curly braces  for
things other than blocks of code:

One thing they can be used for is addressing strings as if they were
arrays.  The number inside the {} indicates which character
(zero-indexed) you want to get at.  So:

$s = 'Hello';
$s = 'f';
echo $s;

will output 'fello'.

Re: strings and
Quoted text here. Click to load it

curly braces do have a special meaning inside a string. see php manual  
chapter on strings, especially the paragraphs about simple syntax and  
complex (curly) syntax.

SETI @ Home - Donate your cpu's idle time to science.
Further reading at <

Site Timeline