<p style="color:red;font-size:12px;">This economy car is great value for money and with the added benefit of air conditioning is ideal for couples and small families. A ?500 excess applies which can be waived to NIL for only <b>5.00</b> per day</p>
使用以下两种方法
substr($mytext,0,25);
和
$s = html_entity_decode($mytext);
$sub = substr($s, 0, 50);�
需要获取前 50 个字符...请帮忙
谢谢
最佳答案
关于php - html中的子字符串,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10210630/