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