Ask a smarty question.
Smarty There is no such as in PHP In_array () judgment, if not how to add in? If so, how to write?
------Solution--------------------
This is not Smarty's life, what do you want to throw to Smarty? I don't understand.
------Solution--------------------
Smarty can expand, write a plugin or function to do it, hehe
------Solution--------------------
You write a loop in the Smarty.
------Solution--------------------
Smarty is just a tool, is auxiliary, the programmer is alive.
------Solution--------------------
Agree to yueliangdao0608 (Shenzhen Phper,msn:[email Protected]) method
Write a loop and find out for yourself
------Solution--------------------
System Management Expand |
- System log
- Data backup
- Restore Factory Configuration
|
------Solution--------------------
In_array () in the PHP program, and then put the return value,
$smarty-Assign ("Signal", In_array ("Xiao", $str));
My station was written in Smarty, http://www.xiaoi8.com.