Re: help with multi dimensional arrays

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

 




On Wed, May 23, 2007 9:59 pm, James Lockie wrote:
> I get a syntax error on strlen.
>
>
>     $newTypes = array();
>     $newTypes[0] = array();
>     $newTypes[0][0] = "Starting with"
>     $newTypes[0][1] = strlen( $newTypes[0][0] );

If you are missing the ; in the line before, PHP gets pretty confused
and tries to smush the two lines together, essentially, and then...

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

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