Return to Snippet

Revision: 15252
at June 29, 2009 10:32 by martin_rusev


Initial Code
class Test
{

    public $result; 
		
    function __construct()
    {
    	
	
    	
    $this->result = TRUE;
			
        
		
    }
	
    public function __toString() 
    {
        
       return (string)$this->result;
    
     }
}

$test = new Test();
var_dump($test->result);

Initial URL

                                

Initial Description

                                

Initial Title
Class returning boolean value

Initial Tags
class

Initial Language
PHP