<?php
  $text = "The order number is 48213.";
  $found = preg_match("/\d+/", $text, $matches);

  if ($found) {
    echo "Order found: ".$matches[0]; // Order found: 48213
  } else {
    echo "No number found";
  }
?>