foreach letter
Posted: Sat Aug 21, 2010 7:46 am
Hi there, I want to split a string, and add '|' in front of each letter. Ex:
Code: Select all
$string = 'abc1d e fg8kd srf';
// output = |a|b|c|1|d| |e| |f|g|8|k|d| |s|r|f';
echo $output;