what is diff between count and sizeof in the php?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
itarun
Forum Newbie
Posts: 7
Joined: Fri Jan 25, 2008 9:22 am

what is diff between count and sizeof in the php?

Post by itarun »

Hi friends i am new to the php i want to what is the diff between count and sizeof in the php?
georgeoc
Forum Contributor
Posts: 166
Joined: Wed Aug 09, 2006 4:21 pm
Location: London, UK

Re: what is diff between count and sizeof in the php?

Post by georgeoc »

None. sizeof is an alias of the more commonly used count. See sizeof.
User avatar
webspider
Forum Commoner
Posts: 52
Joined: Sat Oct 27, 2007 3:29 am

Re: what is diff between count and sizeof in the php?

Post by webspider »

exactly..........why do they create two functions doing same task :?
dayyanb
Forum Commoner
Posts: 46
Joined: Wed Jan 23, 2008 12:34 am

Re: what is diff between count and sizeof in the php?

Post by dayyanb »

webspider wrote:exactly..........why do they create two functions doing same task :?
Historical reasons most likely.
Post Reply