note 52018 deleted from ref.array by betz

From: Date: Tue, 19 Apr 2005 00:04:31 +0000
Subject: note 52018 deleted from ref.array by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-88194@lists.php.net to get a copy of this message
Note Submitter: ZeroOneZero Reason: useless ---- I just started to play with PHP today.... (Having done lots of things with C, C++, JavaScript and Java previously....) All the stuff sunked very nicely to my old brain-box but then when I got to the "Array" section I was shocked: Jesus Christ! Don't you guys have any prebuilt function to get array length ?????!!!! Ok, Here you go... function array_get_length($array) { $n = 0; if(reset($array) == false) return 0; for(;next($array) != false;$n++); return $n+1; } Jeez...! : )

« previous php.notes (#88194) next »