Rich Bitch Posted January 6, 2010 Report Share Posted January 6, 2010 kā varētu uztaisīt while ciklu, lai atrastu visas saites tekstā? Piemēram vajadzētu šādi: while(atrod teksta daļu kas ir vienāda ar http:// vai www (nav priekšā http://)) { $text = str_replace(atrastā_saite, "spiest šeit", $text); } Quote Link to comment Share on other sites More sharing options...
xPtv45z Posted January 6, 2010 Report Share Posted January 6, 2010 To parasti dara ar preg_replace, manuaļa komentāros arī vari atrast piemērus, kur linkiem, tiek pielikti tagi. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.