Re: strlower problem
| From: | Ed Curtis | Date: | Mon, 02 Jun 2008 17:25:27 +0000 |
| Subject: | Re: strlower problem | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-274930@lists.php.net to get a copy of this message | ||
Michael Kubler wrote:
Does : /echo strtolower("CL22");/ work? You could also try : /var_dump($strLow); / Ed Curtis wrote:Sorry I took up your time, EdRichard Heyes wrote:I found the problem myself. The actual code follows the same principal but the value of $thisStr is a $_GET value from a link. The name of that value in the link was 'style'. Oops, you should never use a HTML reserved attribute as a varible identifier in a link. I just wasn't thinking at the time I wrote it. (<a href="order2.php"?style="CL22">)Ed Curtis wrote:I'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?My mistake. I meant to type echo $strLow; not echo $thisStr; in my post.