Zrobiłem ale to nie jest najlepsze rozwiązanie ponieważ dzieli źle wyrazy np. jak mam test to wychodzi t est itp. czy można to zrobić lepiej ?
$news = "TEST TEST TEST TESTTTTTTT TES TSTST"; $news = str_split($news, $ceil); $reklama = "<script type=\"text/javascript\"><!-- google_ad_client = \"pub-3995387288904286\"; /* 160x90, utworzono 10-09-24 */ google_ad_slot = \"1776115406\"; google_ad_width = 160; google_ad_height = 90; //--> </script> <script type=\"text/javascript\" src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\"> </script>"; $news = $news[0]."<div style='text-align:center;'></br>".$reklama."<div></br>".$news[1];