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 :/ 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 ==. 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 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! Link to comment https://forums.phpfreaks.com/topic/113776-solved-compare-values/#findComment-584676 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.