Let's say I have the phone number 0501234555 for which I want to put some * sign on some places. I want that my number should be in this form 050*****55. I want to do this in php.
Can anyone please suggest how to do it? Thanks.
Let's say I have the phone number 0501234555 for which I want to put some * sign on some places. I want that my number should be in this form 050*****55. I want to do this in php.
Can anyone please suggest how to do it? Thanks.
Please try with below code if its solve your problem
$number = '0501234555';
echo substr_replace($number,'*****',3,5); // 050*****55