raimis100 Posted July 8, 2008 Share Posted July 8, 2008 Hey If I for example compare If ('value' == 'value'){ echo 'the same values' } But what should I do If I want these values 'value' == 'VALUE' to be equal ? Yea I know this is basic , but I just can't remember :/ Quote Link to comment https://forums.phpfreaks.com/topic/113776-solved-compare-values/ Share on other sites More sharing options...
DarkWater Posted July 8, 2008 Share Posted July 8, 2008 It should evaluate to "true" regardless of case if you're using ==. Quote Link to comment https://forums.phpfreaks.com/topic/113776-solved-compare-values/#findComment-584665 Share on other sites More sharing options...
craygo Posted July 8, 2008 Share Posted July 8, 2008 you can do something like if(strtolower("value") == strtolower("VALUE")){ echo "the same value"; } Ray Quote Link to comment https://forums.phpfreaks.com/topic/113776-solved-compare-values/#findComment-584668 Share on other sites More sharing options...
raimis100 Posted July 8, 2008 Author Share Posted July 8, 2008 you can do something like if(strtolower("value") == strtolower("VALUE")){ echo "the same value"; } Ray I am so tought ... Why didn;t I think of that ... Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/113776-solved-compare-values/#findComment-584676 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.