Fonction PHP count() en JavaScript (prototype, function)
08`12`2007
Aucun commentaire • Poster un commentaire !
Tags: Javascript PHP
Array.prototype.count = function() {
return this.length;
}
Exemples
var v_array = [ 5, 10, 15, 20, 25]; document.writeln(v_array.count()); // 5