what does this mean ?

This is a discussion on what does this mean ? within the alt.comp.lang.php forums, part of the PHP Programming Forums category; 1 $qry = "SELECT name FROM $tbl "; 2 $rs = &$conn->Execute($qry); 3 if($rs->EOF) { ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-09-2007
comatose
 
Posts: n/a
Default what does this mean ?



1 $qry = "SELECT name FROM $tbl ";
2 $rs = &$conn->Execute($qry);
3 if($rs->EOF) {

I seen this in a program and in line 2 i wanted to know what the "&" before $conn means
and in the same line what "->" means and what it does?

thanks
Reply With Quote
  #2 (permalink)  
Old 01-09-2007
Triar
 
Posts: n/a
Default Re: what does this mean ?

1. $conn->Execute($qry): $conn is an object and Execute() is a method of
it. ( http://nl2.php.net/manual/nl/ref.classobj.php )
2. &$conn->...: a reference to $conn is made
(http://nl2.php.net/manual/en/language.references.php)

RTFM : )

Triar

comatose wrote:
>
> 1 $qry = "SELECT name FROM $tbl ";
> 2 $rs = &$conn->Execute($qry);
> 3 if($rs->EOF) {
>
> I seen this in a program and in line 2 i wanted to know what the "&" before $conn means
> and in the same line what "->" means and what it does?
>
> thanks

Reply With Quote
Reply


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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:36 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0