PHP Code and Linefeeds/Carriage Returns

Posted by tonsils on Stack Overflow See other posts from Stack Overflow or by tonsils
Published on 2010-04-27T15:56:25Z Indexed on 2010/04/27 16:03 UTC
Read the original article Hit count: 231

Filed under:

Hi,

Just wondering, would the following code arrangement cause any issues when calling mysql_connect, i.e.:

public function connect() {
    mysql_connect($this->host,
                  $this->username,
                  $this->password)
        or die("Could not connect. " . mysql_error());

or does it need to be all on one line, i.e.:

mysql_connect($this->host,$this->username,$this->password) or die("Could not connect. " . mysql_error());

Thanks.

© Stack Overflow or respective owner

Related posts about php