Re: is there a difference between count() and sizeof()?

From: Date: Mon, 08 Oct 2001 19:45:43 +0000
Subject: Re: is there a difference between count() and sizeof()?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-70390@lists.php.net to get a copy of this message
Hi, use count() according to the manual: [Appendix G. Aliases list] " It is usually a bad idea to use aliases, are they may be bound to obsolescence or renaming, which will lead to unportable script. This list is provided to help those who want to upgrade their old scripts to newer syntax. " ----- Original Message ----- From: "Philip Olson" <philip@cornado.com> To: "Mark Saunders" <cygnusstudios@home.com> Cc: <php-general@lists.php.net> Sent: Sunday, October 07, 2001 8:48 PM Subject: Re: [PHP] is there a difference between count() and sizeof()? > > See : php.net/sizeof > > Notice the note "The sizeof() function is an alias for count()." which > means they are identical. Although it is kinda strange they have > different 'descriptions' so perhaps that should be looked into. > > regards, > Philip Olson > > > On Sun, 7 Oct 2001, Mark Saunders wrote: > > > Has anyone ever found a need to choose one over the other? It seems to > > me that they both do the same thing. > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#70390) next »