Substring replace : Sub string « String « PHP






Substring replace

<?php
   $ccnumber = "1234567899991111";
   echo substr_replace($ccnumber,"************",0,12);
?>


           
       








Related examples in the same category

1.Substring count
2.substr($String, -3)
3.substr($String, 3, 5)
4.substr($String, -3, 5) (2)
5.substr($String, -3, -5) (3)
6.substr($String, 3, -5) (4)
7.substr($string, 3)
8.Extracting Part of a String with substr()