OZONE Asylum
Forums
Server-Side Scripting - Oh my!
What's -> in php do?
This page's ID:
27910
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 think it's called a reference point. In the case you showed, yes, it's an OP reference, calling to a method inside a defined class. It's also used in PHP's open objects. You can, for example, call up a record set using MySQL, and store it in $result. You can then call, say, $resobj = mysql_fetch_object($result) and you will end up with an object with a series of arrays in it, containing each of the records in your result, listed by column name. So, if your columns were ID, FirstName, LastName, you could do: [code] foreach ($resobj as $recobj) { echo $recobj->ID." "; echo $recobj->FirstName." "; echo $recobj->LastName."<br />"; } [/code] So, yes, I've pretty much repeated what poi said, and taken it a bit further. Enjoy! [url=http://sunday.yarinareth.net][img]http://members.ii.net/~skaarjj/tempus.gif[/img][/url] Justice 4 [url=http://www.justice4pat.com]Pat Richard[/url]
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