The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
-> and =>??
What is different between -> and =>?? Call me stupid if you will
I tried to find out more about that at php.net and books, no luck. I wonder can someone give me the examples the differences between -> and => and details about it if possible. Thanks. |
#2
|
||||
|
||||
-> is used mostly in object oriented programming like
class Name { var username; function Start ($this->username) { } } and => is equal or greater than if (3=>10) { // do this } |
#3
|
||||
|
||||
Thanks yours and Professional PHP4 by Wrox help me lots about this. It is OOP after all. Thanks
|
#4
|
|||
|
|||
Quote:
The => operator is something different entirely. It is most commonly used in a foreach control structure, such as: PHP Code:
|
#5
|
|||
|
|||
It is also used to create an array using Array( ) language-construct.
http://www.php.net/manual/en/function.array.php PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|