Here you can find the source of ucfirst()
String.prototype.ucfirst = function() { this.toLowerCase().replace(/\b([a-z])/, function(c){ return c.toUpperCase(); });/* ww w .j a va 2 s.c om*/ };
String.prototype.ucfirst = function() { return this.charAt(0) + this.slice(1);
String.prototype.ucfirst = function() { return this.charAt(0).toUpperCase() + this.slice(1);
String.prototype.ucfirst = function() return this.charAt(0).toUpperCase() + this.substr(1); };
String.prototype.ucfirst = function() { return this.charAt(0).toUpperCase() + this.substring(1).toLowerCase();
String.prototype.ucfirst=function(){ var split=this.split(''); split[0]=split[0].toUpperCase(); return split.join(''); };
String.prototype.ucfirst = function() { return this.charAt(0).toUpperCase() + this.substr(1); }; function isset(args) { return (typeof args !== 'undefined' && args !== null);
String.prototype.ucfirst = function() { return this.charAt(0).toUpperCase() + this.slice(1); String.prototype.lcfirst = function() { return this.charAt(0).toLowerCase() + this.slice(1);
String.prototype.ucfirst = function() { return this.substr(0, 1).toUpperCase() + this.substr(1, this.length); };
String.prototype.ucfirst = function() var aString = this; var aResult = aString.charAt(0).toUpperCase(); for (var i=1;i<aString.length;i++) { aResult += aString.charAt(i); return aResult;