Re: String: Arrays of arrays.
| From: | Jason Wong | Date: | Thu, 23 Dec 2004 08:53:56 +0000 |
| Subject: | Re: String: Arrays of arrays. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-205053@lists.php.net to get a copy of this message | ||
On Thursday 23 December 2004 15:39, Song Ken Vern-E11804 wrote:
> print "<!--=$groups[$i][$j]=-->\n"; /* line?? */
>
> to include :-
>
> $cid = $groups[$i][$j];
> print "<!--=$cid=-->\n"; /* line?? */
>
> I seem to get the results I want.
>
> Why is this? Is there a syntax error?
You need to change it to this:
print "<!--={$groups[$i][$j]}=-->\n";
See manual > Types > Strings (Complex syntax).
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Money isn't everything -- but it's a long way ahead of what comes next.
-- Sir Edmond Stockdale
*/