Jump to content
php.lv forumi

Skaitit vardus


Gacha

Recommended Posts

Nu to jau es petiju, bet tas atgriezh masiivu. Domaju vai nav taada, kas darbojas apmeram taa, kaa substr bet ar vaardiem. Bet ja nav tad bus jaizmanto tas pats str_word_count

echo implode(' ',array_slice(str_word_count($str, 1),0,100));

 

maybe bloated but still learn the use of functions.. :)

Link to comment
Share on other sites

×
×
  • Create New...