robert_gsfame Posted July 1, 2010 Share Posted July 1, 2010 how can i ignore the capital letter, let say $firststring="a"; $secondstring="A"; if(($firststring)==($secondstring)){ echo "Same letter!"} thx Link to comment https://forums.phpfreaks.com/topic/206367-ignore-capital-letter/ Share on other sites More sharing options...
scvinodkumar Posted July 1, 2010 Share Posted July 1, 2010 if(strtolower($firststring) == strtolower($secondstring)) echo "same letter"; or if (strcasecmp($firststring, $secondstring) == 0) echo "same letter"; Link to comment https://forums.phpfreaks.com/topic/206367-ignore-capital-letter/#findComment-1079570 Share on other sites More sharing options...
robert_gsfame Posted July 1, 2010 Author Share Posted July 1, 2010 thanks Link to comment https://forums.phpfreaks.com/topic/206367-ignore-capital-letter/#findComment-1079573 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.