![]() |
-> 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. |
-> 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 } |
Thanks :) yours and Professional PHP4 by Wrox help me lots about this. It is OOP after all. Thanks
|
Quote:
The => operator is something different entirely. It is most commonly used in a foreach control structure, such as: PHP Code:
|
It is also used to create an array using Array( ) language-construct.
http://www.php.net/manual/en/function.array.php PHP Code:
|
All times are GMT. The time now is 07:35 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|