The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
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
![]() |
#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:
|
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|