Summary of common variable operators in smarty, smarty operator Summary
This article summarizes the common variable operators in Smarty and shares them for everyone's reference. Specific as follows:
The PHP template engine smarty variable operators
The variable operator of the php template engine smarty can be used to operate variables, user-defined functions, and characters. The variable operator of the php template engine smarty can be used to operate variables, user-defined functions, and
PHP built-in function example tutorial, built-in function instance tutorial
Uppercase and lowercase conversion related functionsStrtolower ()Strtoupper ()Ucfirst ()Ucword ()
Text HTML tag handler function
NL2BR ()Htmllentities ()Htmlspecialchars
Case-sensitive conversion functions
Strtolower ()Strtoupper ()Ucfirst ()Ucword ()
Text HTML Tag processing function
Nl2br ()Htmllentities ()Htmlspecialchars ()Stripslashes ()Strip_tags ()Number_format ()Strrev ()MD5 ()
// Convert to lowercase$ A =
The variable operator of the PHP template engine smarty can be used to operate variables, user-defined functions, and characters.The syntax uses "|" to apply the variable operator. for multiple parameters, use ":"?? Refers to memory? /Div>Capitalize
Common variable operators and Smarty operators in smarty
This article summarizes common variable operators in Smarty and shares them with you for your reference. The details are as follows:
The variable operator of the php template engine smarty can
You can download the files that are included with this document on this page, or you can download this document in the character processing of the file download that describes how to safely display the formatted user input. We will discuss the
PHP string functions* Directory [1] features [2] Output [3] space [4] case sensitive [5] HTML [6] format [7] compared to the previous
String processing and analysis are an important foundation in any programming language and are often simple and
This article mainly introduces the summary of common string formatting functions in PHP. the functions described in this article are frequently used on the WEB, for example, functions such as space filling and string filling, case-sensitive
In smarty, how does one modify text and variables? Of course, you can use php functions to process text and allocate it to the template through The assign () method. In fact, smarty provides a variable regulator that can easily process text. The
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.