Now the development of the site to use the Smarty framework template, feel very good, better realize the PHP source code and the separation of HTML. Now share some common variables of smarty.
1, smarty_dir SMARTY directory
Locate the full system
Variable variables, the variable names of a variable can be dynamically set and used. Syntax form is a special syntax for PHP, which is rare in other languages.
Sometimes it is convenient to use variable variable names. That is, the variable name
Answer the question in the previous section first.
Copy Code code as follows:
$foo = 10;
$bar = 20;
function Change () {
Global $foo;
echo ' function internal $foo = '. $foo. ' ';
If the $bar is not defined as a
Variable range of PHP for front-end learning, front-end php variable* Directory [1] range span [2] function range [3] global [4] predefined variable [5] before the hyperglobal variable
The variable range is the context defined by the variable (that
This article describes how to explore the PHP kernel: Variable storage and type related information. For more information, see
This article describes how to explore the PHP kernel: Variable storage and type related information. For more information,
JavaScript variable scope and memoryLearning Essentials:1. Variables and scopes2. Memory issuesJavaScript variables differ greatly from those of other languages. A JavaScript variable is a loosely-typed (non-mandatory type) nature that determines
Assign values to PHP variables, and assign values to JavaScript variables. PHP variables are assigned values and substituted into the variables in JavaScript. the javascript copy code is as follows: $ (document ). ready (function () {php $
PHP variable naming rules
1. The variable begins with the dollar sign $. such as $name, $age.
2, dollar sign $ The first character that follows cannot be a number, only an underscore _ or a letter. Variables such as $1_1 are wrong.
3, in addition
PHP template engine Smarty built-in variable mediator usage detailed, template Smarty
This example describes the PHP template engine Smarty built-in variable mediator usage. Share to everyone for your reference, as follows:
The variable mediator in
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.