Michael Kubler wrote:
Does :

/echo strtolower("CL22");/

work?
You could also try :

/var_dump($strLow);

/

Ed Curtis wrote:
Richard Heyes wrote:
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.


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">)

Sorry I took up your time,

Ed
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to