showecho

PHP 如何使用正则表达式替换一部分内容?

  •  
  •   showecho · Jun 27, 2018 · 2957 views
    This topic created in 2908 days ago, the information mentioned may be changed or developed.
    比如 $str='111aabbc111ddxxx111555444111';

    我要把中间两个 111 替换成 1+1+1+,前后 111 不变;

    思来想去没有好办法,
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3048 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 09:12 · PVG 17:12 · LAX 02:12 · JFK 05:12
    ♥ Do have faith in what you're doing.