Return false from __constructor
<p>Can you return false from the contructor?</p>

<pre><code>&lt;?php


class ftp_stfp{

    //private vars of the class
    private $host;
    private $username;
    private $password;
    private $connection_type;
    private $connection = false;


    function __contruct( $host, $username, $password, $connection_type ){

        //setting the classes vars
        $this-&gt;host         = $host;
        $this-&gt;username     = $username;
        $this-&gt;password     = $password;
        $this-&gt;connection_type = $connection_type;

        //now set the connection into this classes connection
        $this-&gt;connection = $this-&gt;connect();

        //check the connection was set else return false
        if($this-&gt;connection === false){
            return false;   
        } 
    } ... etc etc the rest of the class
</code></pre>

<p>Call the class:</p>

<pre><code>$ftp_sftp = new ftp_sftp( $host, $uname, $pword, $connection_type );
</code></pre>

<p>Is this actually correct, ie would the $ftp_sftp var either be false or hold the class depending on outcome of the __construct method, or is this completely wrong logic?</p>
