3raser Posted April 1, 2010 Share Posted April 1, 2010 I have a profile system, and when people type their name in ALL caps, it seems to act like it's not their profile when it is. Can anyone give me a simple code so the code does something like this: Before: THIS After: this Quote Link to comment https://forums.phpfreaks.com/topic/197286-lower-case-all-letters/ Share on other sites More sharing options...
Mchl Posted April 1, 2010 Share Posted April 1, 2010 strtolower Quote Link to comment https://forums.phpfreaks.com/topic/197286-lower-case-all-letters/#findComment-1035515 Share on other sites More sharing options...
3raser Posted April 1, 2010 Author Share Posted April 1, 2010 strtolower Why do I get Parse error: syntax error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in /home6/clubzobb/public_html/Homepage/profiles.php on line 95 for $22output = (strtolower($get_username)); Quote Link to comment https://forums.phpfreaks.com/topic/197286-lower-case-all-letters/#findComment-1035565 Share on other sites More sharing options...
Daniel0 Posted April 1, 2010 Share Posted April 1, 2010 Because variables cannot start with digits. Read the manual... http://www.php.net/manual/en/language.variables.basics.php Quote Link to comment https://forums.phpfreaks.com/topic/197286-lower-case-all-letters/#findComment-1035570 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.