db\QueryInterface exists()

exists() public abstract method

Returns a value indicating whether the query result contains any row of data.

public abstract boolean exists ( $db = null )
$db yii\db\Connection

The database connection used to execute the query. If this parameter is not given, the db application component will be used.

return boolean

Whether the query result contains any row of data.

doc_Yii
2016-10-30 16:59:25
Comments
Leave a Comment

Please login to continue.