Re: strlower problem
| From: | Jim Lucas | Date: | Mon, 02 Jun 2008 16:08:29 +0000 |
| Subject: | Re: strlower problem | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-274927@lists.php.net to get a copy of this message | ||
Richard Heyes wrote:
Ed Curtis wrote:to quickly you answer before you think... //back in the Milky Way...// he should still see something. the op should see the original string 'CL22'. Last time I looked strtolower() did not modify the input as a reference. So echo $thisStr; should result in the op seeing CL22 Unless there are other things happening that only the force knows about... -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night, Act II, Scene V by William ShakespeareI'm converting upper case characters in a string to lower case and am coming up with an empty string. As I've done a million times before with other non-numerical strings. $thisStr = "CL22"; $strLow = strtolower($thisStr); echo $thisStr; Why does $strLow come up empty?Because you're echoing out the original (uppercase) string. Try: echo $strLow; //in my best yoda voice//