showecho

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

  •  
  •   showecho · Jun 27, 2018 · 3009 views
    This topic created in 2937 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   ·   6156 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 57ms · UTC 02:41 · PVG 10:41 · LAX 19:41 · JFK 22:41
    ♥ Do have faith in what you're doing.