Cut String and add delimiter
It takes a String and adds a delimiter after every [length] characters.
Copy this code and paste it in your HTML
function cutAt($string,$length, $delimiter){
{
$one = substr($string,0,$length); $two = cutAt
(substr($string,$length)); return $one.$delimiter.$two;
}else{
return $string;
}
}
Report this snippet
Comments
Subscribe to comments