Jump to content


Photo

What Is "->" Need to know what it does??


  • Please log in to reply
2 replies to this topic

#1 ZoorBIS

ZoorBIS
  • New Members
  • Pip
  • Newbie
  • 5 posts

Posted 13 June 2006 - 02:58 PM

Hi need little help.

Beginner to PHP just wondering if "->" is the same as "="

If not could some please explain to me what it is. An example in .net or java to explain would b e great.

#2 joquius

joquius
  • Members
  • PipPipPip
  • Advanced Member
  • 319 posts

Posted 13 June 2006 - 03:02 PM

it most definitely isn't.
You use -> in quite a few cases all relating to objects. It's basically getting a subsection of the string like
$object->string;
will retreive the "string" which is defined inside $object = new object()

You're better off reading the manual on object..bleh
z..z..z..z..z..z..z..z..

#3 radalin

radalin
  • Members
  • PipPipPip
  • Advanced Member
  • 179 posts

Posted 13 June 2006 - 03:05 PM

Do you kno the meaning of "." (dot) int Java or .NET?
"->" is the PHP version!
Roy Simkes
Yet Another Parkyeri Developer




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users