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;Moderator: General Moderators
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;Code: Select all
"|" . implode("|", str_split($string))