How to Partially Hide Phone in PHP?

Admin   PHP   432  2021-03-18 17:30:08

This post is focused on partially hide phone php. We will look at example of hide phone number php if you have question about partially hide phone in php example then i will give simple example with solution this example will help you hide phone number in php code. You just need to some step to done how to partially hide phone in php.

Example :



function hide_mobile_no($number)


return substr($number, 0, 2) . '******' . substr($number, -2);


$number = 9898899165 ;

echo hide_mobile_no($number) ;


Output :



It will help you...