fork(3) download
  1. $pattern = "/^([0-9]+)$/";
  2.  
  3. if (preg_match($pattern, $input))
  4. echo "yes";
  5. else
  6. echo "nope";
Success #stdin #stdout 0.01s 13112KB
stdin
Standard input is empty
stdout
Standard output is empty