OZONE Asylum
Forums
Server-Side Scripting - Oh my!
What does -> and => in PHP mean?
This page's ID:
31549
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
I've got a stupid PHP question, one I can't google because I have no idea what it's even called. I'm learning PHP and WordPress and I keep running across a symbols/operators I don't understand? What is the meaning of the -> in the following line code or what is it called? [code] while ($my_query->have_posts()) : $my_query->the_post();[/code] I gather from it's context, that it passes the contents of $my_query to the WordPress function have_posts() which return true or false completing the while loop. The problem is, I don't like using things I don't fully understand so if someone could point me in the proper direction I would appreciate it. I did find some info on => which appears to be used with associative arrays, but I'm not positive of its usage or meaning either or if it has any relation to -> J. Stuart J.
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »
Maximum Security
OZONE
DHTML/Javascript
Server-Side Scripting - Oh my!
CSS - DOM - XHTML - XML - XSL - XSLT
Stupid Basic HTML
Visual Therapy
Photoshop
Photoshop Pong, Anyone?
***WARNING*** BIG SIG APPROACHING
Photography
3D Modelling & Rendering
Multimedia/Animation
Print Graphics
Holding Pens
Philosophy and other Silliness
Outpatient Counseling
Site reviews!
Mad Scientists' Laboratory
Getting to know the Grail