the power of trial and error

From: Date: Thu, 07 Dec 2000 23:24:54 +0000
Subject: the power of trial and error
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-29239@lists.php.net to get a copy of this message
I'll have to assume this is not the best method, but tadah! I have achieved the results of my quest <snip> <? $key = "sampleText"; $firstCap = ereg("[A-Z]", $key, $regs); list ($beforecap, $aftercap) = split("[A-Z]", "$key"); $beforecap = ucfirst($beforecap); echo $beforecap." ".$regs[0].$aftercap; ?> </snip> Jerry Lake

« previous php.general (#29239) next »