.qHb l Und0^ Posted December 29, 2009 Report Share Posted December 29, 2009 Sveiki! Man te problēma. Man ir strings $teksts ,kurā ir saglabāts parasts teksts. Man ir nepieciešams tekstu sadalīt kollonās, tādēļ vajag atdalīt no stringa pirmo daļu aptuveni līdz 300-400 simbolam, kurā atrodas komats. Jo pašreiz izmantoju substr($teksts,0,350) un tad teksts tiek aprauts, bet vēlos, lai ir līdz komatam. Ceru, ka palīdzēsiet vai vismaz norādīsiet uz pareizo funkciju! Quote Link to comment Share on other sites More sharing options...
2easy Posted December 29, 2009 Report Share Posted December 29, 2009 (edited) substr($teksts, 0, strpos($teksts, ',', 300)) Edited December 30, 2009 by 2easy Quote Link to comment Share on other sites More sharing options...
.qHb l Und0^ Posted December 30, 2009 Author Report Share Posted December 30, 2009 Danke! 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.