title: PHP - Get length of digits in a number
body: <p>I would like to ask how I can get the length of digits in an Integer. For example:</p>
  
  <pre><code>$num = 245354;
  $numlength = mb_strlen($num);
  </code></pre>
  
  <p><code>$numlength</code> should be 6 in this example. Somehow I can't manage it to work?</p>
  
  <p>Thanks</p>
  
  <p><strong>EDIT:</strong> The example code above --^ and its respective method <code>mb_strlen();</code> works just fine.</p>