<?php$str = "i:143;a:5:{gfgd}i:123;a:7{gfgd}i:5;a:35"; $text = preg_replace('/i:[0-9]+;a:[0-9]+:?/', ",", $str);echo $text;?>
Standard input is empty
,{gfgd},{gfgd},
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!