So I was giving a searched, looking for some function of php that verifies if a certain number exists inside a variable. And I found the preg_match ().
code:
$numeros = "1 2 3 4 5 6 7 8 9";
preg_match(1,$numeros);
Error:
Warning: preg_match(): Delimiter must not be alphanumeric or backslash