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? 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 />"; ?> 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* 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
Archived
This topic is now archived and is closed to further replies.