I am trying to find a function where I can give it a string and an effset from the start of the string and it will return two strings. One of the string before the ofset and one of the string after. Or do I have to write a regex? Thanks Rob
$string = "hello, world"; $offset = 5; $front = substr($string, 0, $offset); $back = substr($string,$offset);
that should do the trick
excellent, works perfectly Rob