php 演算子

http://www.php.net/manual/ja/language.operators.logical.php

//MySQL に接続する。
if( !$res_dbcon = mysql_connect( $hostname, $uname, $upass) ){
print “MYSQL への接続に失敗しました。”;
exit;
}

 

!は、論理演算子の「否定」ですね。
!以下の条件の否定をあらわします。
$res_dbcon には、TRUEまたはFALSEが入ってきますから、
if($res_dbcon )と書けば、TRUEのとき。
if(!$res_dbcon )と書けばFALSEのとき。
を示します。

This website stores cookies on your computer. These cookies are used to provide a more personalized experience and to track your whereabouts around our website in compliance with the European General Data Protection Regulation. If you decide to to opt-out of any future tracking, a cookie will be setup in your browser to remember this choice for one year.

Accept or Deny