Mikijs Posted June 10, 2008 Report Share Posted June 10, 2008 Tatad man ir teksts 002--1299912085399723780127590129999583295829999881295829 Content-Exit Cau ka iet ko dari? 002--0832399895998219958923709989992376122 5829386392897627 Content-Exit Cau ka iet ko dari? 002-Content-Exit Tagad es pielietoju funkciju str_replace lai nonjemtu friikigo uniqueid.. $text=str_replace("002--", "<!--", $text); $text=str_replace("Content-Exit", "-->", $text); un man paliek divi vienadi teksti.. ka lai tiek valja no ta otra teksta? ta lai rezultata butu tikai 1 teksts? ceru ka sapratat :( Link to comment Share on other sites More sharing options...
bubu Posted June 10, 2008 Report Share Posted June 10, 2008 Nesapratām. P.S. Atšķirību starp QUOTE un CODE zini? Link to comment Share on other sites More sharing options...
Mikijs Posted June 10, 2008 Author Report Share Posted June 10, 2008 nju .. ja zinu :) Ka lai sadala tekstu.. man izprinte divas vienadas rindinjas ar vestules tekstu "Cau ka iet, ko dari?" bet vinjs dublejas, jo ir HTML un TEXT/Plain versijas.. ka lai noslepj to otro tekstu? Link to comment Share on other sites More sharing options...
bubu Posted June 10, 2008 Report Share Posted June 10, 2008 Atrodi, kur sākas otrā daļa (vai beidzas pirmā) un ar substr nogriez nost. Link to comment Share on other sites More sharing options...
Mikijs Posted June 10, 2008 Author Report Share Posted June 10, 2008 es beigas ar strstr nogriezu Link to comment Share on other sites More sharing options...
mounkuls Posted June 10, 2008 Report Share Posted June 10, 2008 Ja tas unique id ir konstanta garum, pietiek ar explode un substr funkcijām. Link to comment Share on other sites More sharing options...
Recommended Posts