Re: Noob question: Making search results clickable.

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

 



On Thu, 19 Nov 2009 17:02:53 -0000, "Ford, Mike" wrote:

>> -----Original Message-----
>> From: Nisse Engström [mailto:news.NOSPAM.0ixbtqKe@xxxxxxxx]
>> 
>> Without actually checking, I don't think "$row[...]"
>> is going to work in double quoted strings. I'm pretty
>> sure it needs to be in braces. You also need to escape
>> the double quotes and put the array indexes in single
>> quotes:
> 
> You should have checked, because "...$row[title]..." is a valid
> alternative for "...{$row['title']}...". 

I didn't know that. It never occured to me to *not*
use single quotes around the index...

> Personally, I never use it because of it not having the same meaning
> outside a double-quoted string -- but it is a documented feature.

Right. I always use braces (or dot-concatenation) for
anything beyond a simple variable name.


/Nisse

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