note 44578 deleted from function.sizeof by tularis

From: Date: Mon, 11 Oct 2004 05:43:00 +0000
Subject: note 44578 deleted from function.sizeof by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-78316@lists.php.net to get a copy of this message
Note Submitter: l e e k i n ---- "sizeof -- Alias of count()" sizeof is not a alias of count for multiple arrays. if you have an array like this: Array ( [c_adi] => Samet [c_soyadi] => Mutlu [saat] => 13:00:00 [tarih] => 2004-09-21 ) both echo count($arr); echo sizeof($arr); will out: 4 But if your arr variable looks like this: Array ( [0] => Array ( [c_adi] => Samet [c_soyadi] => Mutlu [saat] => 13:00:00 [tarih] => 2004-09-21 ) [1] => Array ( [c_adi] => durmuº [c_soyadi] => Mutlu [saat] => 13:00:00 [tarih] => 2004-09-21 ) ) echo count($arr); will out: 0 echo sizeof($arr); will out: 2 that's the difference between them.

« previous php.notes (#78316) next »