$words = explode(' ', $article); $words[$count] .= '<br>'.$adsensecode.'<br>'; $article = implode(' ', $words);