Jump to content

class: returning a function


Darkness Soul

Recommended Posts

Yo,

I'm trying to start dev with OO, so I'm build up a connection class, but have a question about functions. If I want do the function below, will it record in a variable with the same name as the function or will it work as function return?

[code]
class conexao ()
{
    var $dados ;
    function executa ( $comando )
    {
        $this->executa = @mysql_query ( $comando , $this->conexao ) ;
    }
}[/code]

Thank you,

D.Soul
Link to comment
https://forums.phpfreaks.com/topic/28857-class-returning-a-function/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.