PHP a few grammatical symbols problems
-
=
.
:
::
What do you mean by each other?
------Solution--------------------
class, calling non-static properties or methods in the class, such as: $this->aaa;
= = symbol between key,value in array, such as Array (' a ' = = ' value ');
. Connection string
:: Calling a Class static property or method
: Alternative syntax
The basic form of alternative syntax:
The left curly brace ({) is replaced by a colon (:) and the right curly brace (}) is replaced by a endif;,endwhile;,endfor;,endforeach; and Endswitch;
Let's take an example:
is negative pull
The above statement is equivalent to
is negative pull
------Solution--------------------
class, calling non-static properties or methods in the class, such as: $this->aaa;
= = symbol between key,value in array, such as Array (' a ' = = ' value ');
. Connection string
:: Calling a Class static property or method
: Alternative syntax
The basic form of alternative syntax:
The left curly brace ({) is replaced by a colon (:) and the right curly brace (}) is replaced by a endif;,endwhile;,endfor;,endforeach; and Endswitch;
Let's take an example:
is negative pull
The above statement is equivalent to
is negative pull
------Solution--------------------
The method or property of the object
= = element value of array
. Connection string
: Alternative syntax
:: Calling a Class static property or method
------Solution--------------------
class, calling non-static properties or methods in the class, such as: $this->aaa;
= = symbol between key,value in array, such as Array (' a ' = = ' value ');
. Connection string
:: Calling a Class static property or method
: Alternative syntax
The basic form of alternative syntax:
The left curly brace ({) is replaced by a colon (:) and the right curly brace (}) is replaced by a endif;,endwhile;,endfor;,endforeach; and Endswitch;
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.