bobleny Posted April 11, 2007 Share Posted April 11, 2007 Just a quick question.... How do I make a "not greater" than symbol? if (strlen($_POST['first']) !> 2) { } If the number of characters in $_POST['first'] is not grater than 2, do this... I don't want to reverse it! I need not greater than. Link to comment https://forums.phpfreaks.com/topic/46539-solved-just-a-quick-question-how-do-i-make-a-not-greater-than-symbol/ Share on other sites More sharing options...
rcorlew Posted April 11, 2007 Share Posted April 11, 2007 I think you need this if (strlen($_POST['first']) =< 1) { } Which would not make it greater than 2 Link to comment https://forums.phpfreaks.com/topic/46539-solved-just-a-quick-question-how-do-i-make-a-not-greater-than-symbol/#findComment-226528 Share on other sites More sharing options...
kenrbnsn Posted April 11, 2007 Share Posted April 11, 2007 If something is not greater than something else, then it is less than or equal, so: <?php if (strlen($_POST['first']) <= 2) ?> Ken Link to comment https://forums.phpfreaks.com/topic/46539-solved-just-a-quick-question-how-do-i-make-a-not-greater-than-symbol/#findComment-226529 Share on other sites More sharing options...
bobleny Posted April 11, 2007 Author Share Posted April 11, 2007 Yeah, I knew that! How stupid! I guess it is just getting late... 1:00 AM... lol Sorry to bother you with such a stupid question! Link to comment https://forums.phpfreaks.com/topic/46539-solved-just-a-quick-question-how-do-i-make-a-not-greater-than-symbol/#findComment-226533 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.