天桥区:php程序 截取问题

来源:百度文库 编辑:中科新闻网 时间:2024/07/02 17:43:02
类似asp的这种写法<%=left(rs("title"),20)%>

<? echo $rs['title']?>
我需要取20个字
在php中如何写?