#一, PHP variable definition: Variables are used to store values, such as numbers, text strings or arrays, V: string/integer/double/array/object
Naming rules:
1. The variable name of PHP is case-sensitive. 2. The variable name must begin with $3,
Php variables are described in detail. Php variables are used to store information. syntax for defining a variable: $ variable name value. example of using a variable :? Php $ x5; $ y6; $ z $ x + $ y; echo $ z ;? Php variables
A variable is a
The range of a variable is its effective range. Most PHP variables only have a single scope of use, and include files introduced by include and require.
Php variable range
The range of a variable is its effective range. Most PHP variables only have
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
There are a lot of ways to install extensions to PHPFirst, recompileEnter the PHP source directory./configure--prefix=/usr/local/php ... [Other compilation parameters]Ii. adding extensions via PhpizeEnter the PHP source extension application
Php variable scope learning notes sharing. Variable scope is the scope of a variable that can be used between pages and functions, the following small series will introduce some learning notes about the use of php variables in the domain. the
Excerpt from: http://www.qianyunlai.com.com/blog/220.html
Each variable in PHP has a scope for it, which is an area in which you can access a variable (and thus access its value). For starters, variables are scoped to the page where they reside.
The scope of the variables in PHP is described in the PHP manual
In a user-defined function, a local function range is introduced. Any variable that is used inside a function is limited by default to the scope of the local function. For example:
PHP Tutorial Configuration Chinese Narration
Let's see what you see, php.ini.
[PHP]
;;;;;;;;;;;; WARNING;;;;;;;;;;;;; This is the default settings file for new PHP installations.; By default, PHP installs itself with a configuration suitable for;
If a global variable in PHP references the address of a local variable PHPcode $ B & quot; dasdf & quot; functionabc () {$ a & quot; abc & quot ;; global $ B; $ B & amp; $ a; echo $ B. & quot; if a global variable of I PHP references the address of
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.