Re: Noob question: Making search results clickable.
| From: | Nisse Engström | Date: | Fri, 20 Nov 2009 04:27:30 +0000 |
| Subject: | Re: Noob question: Making search results clickable. | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-299949@lists.php.net to get a copy of this message | ||
On Thu, 19 Nov 2009 17:02:53 -0000, "Ford, Mike" wrote:
>> -----Original Message-----
>> From: Nisse Engström [mailto:news.NOSPAM.0ixbtqKe@luden.se]
>>
>> 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