Named backreferences with preg_replace

前端 未结 4 1124
说谎
说谎 2021-01-04 11:30

Pretty straightforward; I can\'t seem to find anything definitive regarding PHP\'s preg_replace() supporting named backreferences:

// should mat         


        
4条回答
  •  猫巷女王i
    2021-01-04 11:48

    preg_replace does not support named backreferences.

    preg_replace_callback supports named backreferences, but after PHP 5.3, so expect it to fail on PHP 5.2 and below.

提交回复
热议问题