split string after x characters

// split a string from a number
public function split_on($string, $num) {
$length = strlen($string);
$output[0] = substr($string, 0, $num);
$output[1] = substr($string, $num, $length );
return $output;
}

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *