title: Hide numbers of a phone number
body: <p>How can I show and hide the some numbers of a phone number by replacing it with <code>*</code> like <code>0935***3256</code> by PHP?</p>
  
  <p>EX:</p>
  
  <blockquote>
    <p>09350943256 -> 0935***3256<br> 09119822432 -> 0911***2432<br>
    09215421597 -> 0921***1597<br>...</p>
  </blockquote>
  
  <hr>
  
  <pre><code>$number = '09350943256';
  echo str_pad(substr($number, -4), strlen($number), '*', STR_PAD_LEFT);
  </code></pre>
  
  <p>Top php code result is as: <code>*******3256</code> but i want result as: <code>0935***3256</code></p>
  
  <p>How is it?</p>