Re: Second question of the day. PHP's version of Perl's $#varName?
| From: | (Richard Lynch) | Date: | Tue, 04 Jul 2000 02:58:34 +0000 |
| Subject: | Re: Second question of the day. PHP's version of Perl's $#varName? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-4664@lists.php.net to get a copy of this message | ||
In article <8jqt53$l55$1@toye.php.net>, daniel@vesma.co.uk ("Daniel
Vesma") wrote:
> How do you determine the length of an array in PHP? in perl I use $#varName?
count() works
sizeof() works
I *think* your beloved # might even work...
Try it and see.
--
Richard Lynch | If this was worth $$$ to you, buy a CD
US Customer Support Director | from one of the artists listed here:
Zend Technologies USA | http://www.L-I-E.com/artists.htm
http://www.zend.com | (this has nothing to do with Zend,
duh!)