PHP: count - Manual - PHP: Hypertext Preprocessor

PHP: count - Manual - PHP: Hypertext Preprocessor

瀏覽:1195
日期:2025-06-14
I've read this somewhere else before, but experienced it first hand now, so I thought I'd post it here. While in regular use, count() is pretty fast, this changes rapidly when used in a for loop. Example: for ($x = 0; $x < count($array); $x++) { // some c...看更多