felito Posted June 3, 2011 Share Posted June 3, 2011 hi i need to compare two something like that: (!$form['salary'])>$value1."€" && (!$form['salary'])<$value2."€" ) For example 400€ > 300€, How can i do that?? For this example i can't simply use 400>300 thanks Quote Link to comment https://forums.phpfreaks.com/topic/238276-compare-strings/ Share on other sites More sharing options...
Pikachu2000 Posted June 3, 2011 Share Posted June 3, 2011 Why not just work with them as numeric values, then concatenate the currency symbol when you display them? That would make a lot more sense, IMHO. Quote Link to comment https://forums.phpfreaks.com/topic/238276-compare-strings/#findComment-1224499 Share on other sites More sharing options...
felito Posted June 3, 2011 Author Share Posted June 3, 2011 true. I did what you suggest and the problem is solved Quote Link to comment https://forums.phpfreaks.com/topic/238276-compare-strings/#findComment-1224626 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.