Ask a question about smarty. Is there any judgment similar to & nbsp; in_array () & nbsp; in php in smarty? If not, how can I add it? If so, how to write ?, This is not the work of smarty. why do we have to throw it to smarty? Do not understand. smarty can be extended. write a plug-in or function on your own. ask a question about smarty.
Is there any judgment similar to in_array () in php in smarty? If so, how to write?
------ Solution --------------------
This is not the work of smarty. why do we have to throw it to smarty? Cannot understand.
------ Solution --------------------
Smarty can be extended. write a plug-in or function by yourself.
------ Solution --------------------
You can write a loop in smarty.
------ Solution --------------------
Smarty is just a tool, it is a helper, and programmers are active.
------ Solution --------------------
Agree yueliangdao0608 (Shenzhen PHPER, MSN: yueliangdao0608@gmail.com) method
Write a loop and find it by yourself
------ Solution --------------------
| System Management |
- System logs
- Data Backup
- Restore factory configuration
|
------ Solution --------------------
In the php program, in_array (), and then return the value,
$ Smarty-> assign ("signal", in_array ("xiao", $ str ));
My little station is also written with smarty, http://www.xiaoi8.com