justus Posted March 27, 2004 Report Share Posted March 27, 2004 nu funkcijaa explode "$$$$;$" par robezu simbolu izmantot vairaakus simbolus? Link to comment Share on other sites More sharing options...
rnc Posted March 27, 2004 Report Share Posted March 27, 2004 Mh, var! <?php $strings ="te ir kaut kaads texts ::: te ir cits texts ::: veel kaut kas"; $masivs = explode(":::",$strings); echo $masivs[0]; // atgrieziis "te ir kaut kaads texts" (bez peedinjaam) echo $masivs[1]; // atgrieziis "te ir cits texts", utt ?> Link to comment Share on other sites More sharing options...
justus Posted March 27, 2004 Author Report Share Posted March 27, 2004 jaa un veel jautaajums: "teksts### veel texts### l;ksdlkvcvcxvcl&&& teksts###veel druscinj teksts### djkdsksdk&&& taads teksts sarakstiits txt failaa, to vajag sadaliit pa 2 masiiviem "&&&" shie simboli robezja(masiivu robeza); un massiiva elementu robezja ###, nu apmeeram katkaa taa man ar tiem cikliem kautkaa nesanaak :ph34r: :ph34r: :ph34r: :ph34r: Link to comment Share on other sites More sharing options...
rnc Posted March 27, 2004 Report Share Posted March 27, 2004 <?php $fails = file_get_contents('fails.txt'); $masivs = explode ("&&&",$fails); for($i=0;$i<=count($masivs);$i++) $masivs[$i] = explode("###",$masivs[$i]); ?> Ah, neesu notesteejis :) Bet nu iznaakumaa vajadzeetu buut $masivs[0][0] (pirmaa masiiva pirmais elements), $masivs[0][1] pirmaa masiiva otrais elements $masivs[1][2] otraa masiiva treshais elements, $masivs[2][0] treshaa masiiva pirmais elements, utt, cerams, ka saprati :) Link to comment Share on other sites More sharing options...
justus Posted March 27, 2004 Author Report Share Posted March 27, 2004 jaa, Paldies par paliidziibu!!! :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) Link to comment Share on other sites More sharing options...
Recommended Posts