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 Quote Link to comment 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"; Quote Link to comment Share on other sites More sharing options...
robert_gsfame Posted July 1, 2010 Author Share Posted July 1, 2010 thanks Quote Link to comment 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.