fork download
  1. <?php
  2. $str = "i:143;a:5:{gfgd}i:123;a:7{gfgd}i:5;a:35";
  3. $text = preg_replace('/i:[0-9]+;a:[0-9]+:?/', ",", $str);
  4. echo $text;
  5. ?>
Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
,{gfgd},{gfgd},