...

View Full Version : wht's does => mean



blackwing
11-14-2006, 03:28 AM
hi friends..,
well I'm noob in PHP...,
i was going through a side code and in it i noticed the sigh '=>',
i know '->' means an arrow... but what is => and what is the use of it...

part of teh code is given below...

" set_snapshot(array('mode' => 'SSL', 'page' => FILENAME_CHECKOUT_PAYMENT)"

thx..

Spookster
11-14-2006, 04:03 AM
The arrow -> as you have called it is a pathname seperator used when referring to variables or functions within an instance of a class.

The => symbol is the key value operator. It defines the relationship between a key and it's value. So $key => $value. You would define this relationship in an array.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum