Home > Backend Development > PHP Tutorial > smarty?截取字符串,该如何解决

smarty?截取字符串,该如何解决

WBOY
Release: 2016-06-13 12:27:25
Original
951 people have browsed it

smarty?截取字符串

<br /><{section name=s loop=$eventinfo}><br /><{$eventinfo[s].start_mm}>  (October )<br />//怎么获取$eventinfo[s].start_mm 的前三个字母 (Oct)<br /><{/section}><br />
Copy after login

------解决思路----------------------
------解决思路----------------------
substr:0:3}>

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template