Page 1 of 1

what is diff between count and sizeof in the php?

Posted: Wed Jan 30, 2008 4:36 am
by itarun
Hi friends i am new to the php i want to what is the diff between count and sizeof in the php?

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

Posted: Wed Jan 30, 2008 7:24 am
by georgeoc
None. sizeof is an alias of the more commonly used count. See sizeof.

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

Posted: Wed Jan 30, 2008 7:51 am
by webspider
exactly..........why do they create two functions doing same task :?

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

Posted: Wed Jan 30, 2008 8:41 am
by dayyanb
webspider wrote:exactly..........why do they create two functions doing same task :?
Historical reasons most likely.