Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Nov 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question wht's does => mean

    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..

  • #2
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,280
    Thanks
    4
    Thanked 83 Times in 82 Posts
    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.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •