String substitution substr_ Replace and str_ replace

From , 3 Years ago, written in PHP, viewed 52 times.
URL https://pastebin.vip/view/c1d0f19c
  1. <?php
  2. echo substr_replace('abcdef', '###', 1);    //输出 a###
  3. echo substr_replace('abcdef', '###', 1, 2); //输出 a###def
  4. echo substr_replace('abcdef', '###', -3, 2);    //输出 abc###f
  5. echo substr_replace('abcdef', '###', 1, -2);    //输出 a###ef  
  6. ?>

Reply to "String substitution substr_ Replace and str_ replace"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website