Extract words from string with preg_match_all

前端 未结 7 2320
你的背包
你的背包 2020-12-21 17:14

I\'m not good with regex but i want to use it to extract words from a string.

The words i need should have minimum 4 characters and the provided string can

7条回答
  •  长情又很酷
    2020-12-21 17:52

    $string = Sus azahares presentan gruesos pétalos blancos teñidos de rosa o violáceo en la parte externa, con numerosos estambres
    
    $words = explode(' ', $string);
    echo $words[0];
    echo $words[1];
    

    and so on

提交回复
热议问题