Ask a question about smarty.

Source: Internet
Author: User
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? ------ Solution -------------------- This is not a smarty job. why should I throw it to smarty? I cannot understand. ------ solution ------------------ smarty asked 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.