I have a doubt I want to pass a parameter within the rule eg the value that is entered is 1500-2000 and I want it to only validate the numerical value with the hyphen in between. I still need something to detect the script.
CODE:
if(preg_match('/^[0-9]+$/',"1500-2000")){
echo "filtro precio";
}