标签: php html
In the "description" i want to display all 3 to 4 words but only displays the first word... help please
答案 0 :(得分:0)
使用PHP strpos或substr
$pos=strpos($record['description'], ' ', 4); echo substr($record['description'],0,$pos );