slice a string till a certain word in php code example Example: string slice php substr(string,start,length)