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. 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 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)) { ?> 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! 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
Archived
This topic is now archived and is closed to further replies.