ray Posted August 24, 2006 Report Share Posted August 24, 2006 Kā lai sadala tekstu, piem, ieliekot "space" pa vidu vai kkā tamlīdzīgi. Jo piemēram man ir ievades forma, kur apmekletājs ievadot piem AAAAAAAA (utt.) izbīdās visa dizaina tabulu struktūra. Kā, lai izdara, lai ievadot AAAAA (utt.) tekstu sadala tiklīdz tas sasniedz noteiktu garumu? Link to comment Share on other sites More sharing options...
Kristabs Posted August 24, 2006 Report Share Posted August 24, 2006 http://lv.php.net/wordwrap Link to comment Share on other sites More sharing options...
Paulinjsh Posted August 24, 2006 Report Share Posted August 24, 2006 (edited) ar utf-8 simboliem būs prob. Edited August 24, 2006 by Paulinjsh Link to comment Share on other sites More sharing options...
Delfins Posted August 24, 2006 Report Share Posted August 24, 2006 atrodi netā (liekas arī šajā forumā) kādu standarta algoritmu + nomaini tur str f-jas uz mb_* analogu.. un būs tev any-charset wordwraperis Link to comment Share on other sites More sharing options...
Paulinjsh Posted August 24, 2006 Report Share Posted August 24, 2006 Nu tādu arī uztaisīju, kad vajadzēja :) Link to comment Share on other sites More sharing options...
Recommended Posts