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

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

WBOY
WBOYOriginal
2016-06-13 12:27:25871browse

smarty?截取字符串

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

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

Statement:
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