mforan Posted December 19, 2008 Share Posted December 19, 2008 if ($messages[$i] != $user) { okay really simple thing here i need to know how to do, how do i make it ignore capitialzation? for example, user in database is user, but the $user is USER, and thus the if is not equal to database value... and therefore aborts as it were, what it is supposed to do lol. Quote Link to comment https://forums.phpfreaks.com/topic/137748-solved-a-z-a-z-a-z-etc/ Share on other sites More sharing options...
Lamez Posted December 19, 2008 Share Posted December 19, 2008 take a look at this: http://us3.php.net/strtolower or http://us2.php.net/ucwords Quote Link to comment https://forums.phpfreaks.com/topic/137748-solved-a-z-a-z-a-z-etc/#findComment-719992 Share on other sites More sharing options...
flyhoney Posted December 19, 2008 Share Posted December 19, 2008 <?php if (strtolower($messages[$i]) != strtolower($user)) { ?> Quote Link to comment https://forums.phpfreaks.com/topic/137748-solved-a-z-a-z-a-z-etc/#findComment-719993 Share on other sites More sharing options...
mforan Posted December 19, 2008 Author Share Posted December 19, 2008 daymn that thing is useful lol! Quote Link to comment https://forums.phpfreaks.com/topic/137748-solved-a-z-a-z-a-z-etc/#findComment-719995 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.