Advertisement

There's no such thing as a stupid question, but they're the easiest to answer.
Login
Search

Advertisement

Web Design & Development Web Design & Development
Search Search
Search for:
Tech Support Guy > > >

Solved: Symbols as operands?


(!)

JiminSA's Avatar
JiminSA   (Jim) JiminSA is offline JiminSA has a Profile Picture
Computer Specs
Member with 1,622 posts.
THREAD STARTER
 
Join Date: Dec 2011
Location: Johannesburg South Africa
Experience: Intermediate
26-Apr-2012, 03:27 AM #1
Solved: Symbols as operands?
Now this is a real noobie question...

I have seen various symbols used in php code (e.g. -> :: =>) - does anyone have a tutorial type link that will give me a simple explanation of all these usages?

Thanks in anticipation...
allnodcoms's Avatar
allnodcoms   (Danny) allnodcoms is offline allnodcoms has a Profile Picture
Computer Specs
Member with 610 posts.
 
Join Date: Jun 2007
Location: Hertfordshire - England
Experience: Advanced
26-Apr-2012, 05:08 AM #2
Wink Guess Who...
Morning James,

I'd try this one out for size first - it's a table of all the common PHP operators.

If there's something you've seen that is not here then there's a good chance it's all about 'Objects', in which case this beginner's tutorial might be worth a look if, like me, you don't do the whole new fangled, object oriented melarchy...

(note to self - really must get round to catching up with the rest of the world at some point)

Danny
JiminSA's Avatar
JiminSA   (Jim) JiminSA is offline JiminSA has a Profile Picture
Computer Specs
Member with 1,622 posts.
THREAD STARTER
 
Join Date: Dec 2011
Location: Johannesburg South Africa
Experience: Intermediate
26-Apr-2012, 05:17 AM #3
Cool Stuff Danny But it doesn't explain the 3 operands I originally queried.. (maybe the second link does, but I'm loathe to go through all the videos, because of the load on my expensive ISP Capacity)
Ta, anyway
allnodcoms's Avatar
allnodcoms   (Danny) allnodcoms is offline allnodcoms has a Profile Picture
Computer Specs
Member with 610 posts.
 
Join Date: Jun 2007
Location: Hertfordshire - England
Experience: Advanced
26-Apr-2012, 05:56 AM #4
OK - Here's the breakdown of these three for all those who "Didn't see the HTML link" at the bottom of that previous page
  1. Is the accessor Operator, used to access properties and methods of PHP objects Example: "$thisObject->name;" is the name property of the object $thisObject...
  2. Is the "Scope Resolution Operator (also called Paamayim Nekudotayim) or in simpler terms, the double colon, is a token that allows access to static, constant, and overridden properties or methods of a class." - Pass!
  3. Is the "Associative Array Thingy", used for $array=["key" => "val"];

Danny
JiminSA's Avatar
JiminSA   (Jim) JiminSA is offline JiminSA has a Profile Picture
Computer Specs
Member with 1,622 posts.
THREAD STARTER
 
Join Date: Dec 2011
Location: Johannesburg South Africa
Experience: Intermediate
26-Apr-2012, 06:19 AM #5
I did find similar descriptions, explaining in "phpspeak" (which I have not yet mastered) - is there a phpspeak to noobiespeak translator??
Thanks for the 1st and the 3rd explanations - the second? - guess I'll have to find that translator!
allnodcoms's Avatar
allnodcoms   (Danny) allnodcoms is offline allnodcoms has a Profile Picture
Computer Specs
Member with 610 posts.
 
Join Date: Jun 2007
Location: Hertfordshire - England
Experience: Advanced
26-Apr-2012, 06:21 AM #6
When you do mate, send me the link...

Danny
As Seen On

BBC, Reader's Digest, PC Magazine, Today Show, Money Magazine
WELCOME TO TECH SUPPORT GUY!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.


(clock)
THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


WELCOME
You Are Using: Server ID
Trusted Website Back to the Top ↑