Klez Posted February 14, 2004 Report Share Posted February 14, 2004 $visi_vardi = "te ir kaut kaads text"; $all = explode(" ", $visi_vardi); $vards_viens = $all[1]; echo $vards_viens; //shitais izvadiis vaardu "ir" :( lieta taada: vai ir iespeejams saskaitiit cik pa visam vaardi ir mainiigajaa $visi_vardi ? Link to comment Share on other sites More sharing options...
sorehead Posted February 14, 2004 Report Share Posted February 14, 2004 <? $visi_vardi = "te ir kaut kaads text"; $visi_vardi_array = explode(" ", $visi_vardi); echo count ($visi_vardi_array); ?> Seit buus vaardu skaits. Link to comment Share on other sites More sharing options...
Klez Posted February 14, 2004 Author Report Share Posted February 14, 2004 tenx :rolleyes: Link to comment Share on other sites More sharing options...
Recommended Posts