Re: references a functions

From: Date: Thu, 04 Apr 2002 19:22:59 +0000
Subject: Re: references a functions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-91585@lists.php.net to get a copy of this message
Opossed to my thoughts worked fine. Rick Emery wrote:
What happened when you tried? -----Original Message----- From: javier [mailto:javier@leeloo.mine.nu] Sent: Thursday, April 04, 2002 1:01 PM To: php-general@lists.php.net Subject: [PHP] references a functions I trying to code a kind of DB wrapper. So when is dbQuery turn I run into trouble. I read in php manual that refrences are not like C pointers. They just point to the same content. I want to return the result from a mysql_query but if I do something like this:
     function bdConsultar($strCon) {
         $idRes = @mysql_query($strCon);
         return $idRes;
     }
Should be called like this? $myID = &bdConsultar("Select * from users");


« previous php.general (#91585) next »