note 88965 deleted from function.sizeof by danbrown

From: Date: Mon, 16 Feb 2009 07:17:55 +0000
Subject: note 88965 deleted from function.sizeof by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-150718@lists.php.net to get a copy of this message
Note Submitter: cpu_rules at hotmail dot com ---- Hmm. Something I've noticed is that sizeof() is generally faster than count(), even if it's only by a slight bit. Sorry if this's been posted before, didn't bother reading through all the comments. "Beginning speed test: count()...Done. Took 0.00031304359436 seconds Beginning speed text: sizeof()...Done. Took 0.000290155410767 seconds" "Beginning speed test: count()...Done. Took 0.000314950942993 seconds Beginning speed text: sizeof()...Done. Took 0.000291109085083 seconds" "Beginning speed test: count()...Done. Took 0.000308990478516 seconds Beginning speed text: sizeof()...Done. Took 0.000293016433716 seconds"

« previous php.notes (#150718) next »