1. {} indicates the start and end of the block
For example
Copy the Code code as follows:
if ($x = = $y)
{
Do_nothing ();
}
2. {} is used to denote a string subscript
For example
(quoting the words of Longnetpro Brothers)
The $s {1} represents the 2nd byte of the string $s (not the first), which is basically equivalent to $s[1], except that the latter is the old one, and the PHP manual recommends the first www.444p.com all rights reserved.
3. Separating variables
For example
Copy the Code code as follows:
$s = "Di,";
Echo ("${s}omething");
Output:di, omething
And if you use Echo ("$something");
Then it will output $something this variable.
http://www.bkjia.com/PHPjc/621708.html www.bkjia.com true http://www.bkjia.com/PHPjc/621708.html techarticle 1. {} indicates the beginning and end of the block such as copy code code as follows: if ($x = = $y) {do_nothing ();} 2, {} is used to denote string subscripts such as (referring to Longnetpro Brothers) $ ...