TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
Advertisement
Associates
Associates
techtuts Darkmindz
CSS Tutorials Tutorialsphere.com - Free Online Tutorials
Boston PHP SurfnLearn
Reply
 
LinkBack Thread Tools Display Modes
Old 09-03-2008, 02:44 AM   #1 (permalink)
The Visitor
Newcomer 
 
phaesus's Avatar
 
Join Date: Sep 2008
Posts: 1
Thanks: 1
phaesus is on a distinguished road
Default mysqli documentation

I need some help understanding the documentation on the mysqli methods in the manual. Basically, I don't get what the difference is between methods described using the scope resolution operator ::, and those using the arror ->.
Some methods can only be used separately, like mysqli_connect_error() or mysqli_debug().
phaesus is offline  
Reply With Quote
Old 09-03-2008, 01:15 PM   #2 (permalink)
The Contributor
 
redSHIFT's Avatar
 
Join Date: Jan 2008
Location: England, UK
Posts: 69
Thanks: 3
redSHIFT is on a distinguished road
Default

In the PHP.net manual methods are shown with a double colon/scope-resolution-operator (the Paamayim Nekudotayim) and properties are shown with an arrow.

For example:
MySQLi::__construct()
MySQLi->affected_rows

I'm not sure on the reasoning for this, as I tend to think static methods when I see an SRO but that's just the way it's shown in the manual.
redSHIFT is offline  
Reply With Quote
The Following User Says Thank You to redSHIFT For This Useful Post:
phaesus (09-03-2008)
Reply



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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 05:29 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0