ttocskcaj Posted February 7, 2012 Share Posted February 7, 2012 I noticed that strtolower() wasn't working. My script was adding blank rows to a text file that was supposed to be lowercase emails, so I wrote the following script to confirm it's not working: <?php $var = "Foo"; echo "$var<br />"; echo srttolower($var)."<br />"; $var = strtolower($var); echo "$var<br />"; ?> This page just prints "Foo" once on the screen where I should see Foo foo foo I then checked my error log, and I'm getting Call to undefined function messages for strtolower(). Any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/256588-strtolower-isnt-working-returns-empty-string/ Share on other sites More sharing options...
Deoctor Posted February 7, 2012 Share Posted February 7, 2012 u have a spelling mistake.. It is working fine for me <?php $var = "Foo"; echo "$var<br />"; echo strtolower($var)."<br />"; $var = strtolower($var); echo "$var<br />"; ?> Quote Link to comment https://forums.phpfreaks.com/topic/256588-strtolower-isnt-working-returns-empty-string/#findComment-1315389 Share on other sites More sharing options...
ttocskcaj Posted February 7, 2012 Author Share Posted February 7, 2012 Don't know how I managed that. I use an IDE lol. *bangs head on wall* Quote Link to comment https://forums.phpfreaks.com/topic/256588-strtolower-isnt-working-returns-empty-string/#findComment-1315392 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.