Ask a smarty about the problem

Source: Internet
Author: User
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.
  • Related Article

    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.