https://php.net/operators.comparison I recommend using StackOverflow for PHP questions. There are the PHP and PocketMine tags for you to use.
Am I stupid? I just find things what I already knwo like == or > but not a thing to cjeck if its between
well you can try making your own func here's a concept between(a,b): a = min a b b = max a b while(true){ if a === b return a//it's middle if a > b or b < a return false//it's a even number a++ b-- } it's a concept do not copy, as far as things goes, it's very poorly optimised and should NOT be used in deployment but only as an example
Yes, yes you are stupid if you recognise the operators but cannot use your initiative to do something as simple as a comparison with them. PHP: if($a >= $min and $a <= $max) { // do something} See how easy this is? We use operators as @SOFe suggested! Spoiler I honestly cannot fathom what brought you to ask this sort of question (yes, I do know this is the facepalm section) as a simple google search would've brought you the answer so much faster and would've actually explained why and how it works.
Please be reminded that $a <= $b < $c does not work as you expect it to. You have to use $a <= $b && $b < $c, because PHP only knows to resolve value by value. (Similar issue: there is no ∈ operator in PHP, so $a == ($b || $c) doesn't work as you expect it to either) Because I moved it. Be nice