Posted by Rik on 08/06/06 00:00
Norman Peelman wrote:
> Although I see that you have the answer you need also note that you
> can do:
>
> Print "<td rowspan='4'><img src='images/$info[image_ref]'></td>";
>
> and avoid all the escaping of quotes... to me, this is much easier on
> the eyes. Examine the lines closely... to use multi-dimensional
> arrays do:
>
> Print "<td rowspan='4'><img
> src='images/{$info['image_ref']['??']}'></td>";
To really avoid quoting issues, there is heredoc synatx. All the single and
double quotes you like:
http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc
Certainly welcome in the bigger strings.
Grtz,
--
Rik Wasmus
Navigation:
[Reply to this message]
|