title: Check if a String Starts with a Number in PHP
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4114609/check-if-a-string-ends-with-a-number-in-php">Check if a String Ends with a Number in PHP</a>  </p>
  </blockquote>
  
  
  
  <p>I'm trying to implement the function below. Would it be best to use some type of regex here? I need to capture the number too.</p>
  
  <pre><code>function startsWithNumber($string) {
    $startsWithNumber = false;
  
    // Logic
  
    return $startsWithNumber;
  }
  </code></pre>