Forum Moderators: coopster
643502
to
6/4/3/5/0/2/
function slash($var) { $var_slash = ''; for($i = 0; $i < strlen($var);$i++) $var_slash .= $var[$i].'/'; return $var_slash; }
separate them with slashes
In your example there you didn't really separate them, matthewamzn, you added a slash after each one. If you just wanted to separate, you could combine a couple of functions:
$number = 643502; $newNumber = implode('/', str_split($number));