Somebody please help me to convert this string
$string1 = "> ìw RA 409 20040513 I %5 )0850 +HKG Y 0N ";
to
$string1 = ">+ìw+RA 409+20040513+I+0850+HKG+Y+N ";
I tried many times but failed.
preg_replace("/[\\\ \ . ()-\%5]/", "+", $string);
Result
+++++ìw++++++++RA+409++20040+13++I++++++++++08+0+++HKG+++Y+0+N+