A noob question about operators...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • DoomedLung

    #1

    A noob question about operators...

    Hey there everyone, I'm new to PHP so please bear with me... basically
    looking at some code and I've stumbled upon an operator (at least I
    think it's an operator) what does "->" mean in the following statement
    $someVariable->somethingEls e.

    Cheers

    DoomedLung

  • Sagari

    #2
    Re: A noob question about operators...

    '->' is used to access class' variables and methods, see the doc:

    PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world.


    All the best,

    Konstantin

    On 26 ñÎ×., 16:57, "DoomedLung " <doomedl...@goo glemail.comwrot e:
    Hey there everyone, I'm new to PHP so please bear with me... basically
    looking at some code and I've stumbled upon an operator (at least I
    think it's an operator) what does "->" mean in the following statement
    $someVariable->somethingEls e.
    >
    Cheers
    >
    DoomedLung

    Comment

    • DoomedLung

      #3
      Re: A noob question about operators...

      Cheers dude

      Comment

      Working...