Jump to content
php.lv forumi

Recommended Posts

Posted
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.. :)

×
×
  • Create New...