db\QueryInterface count()

count() public abstract method

Returns the number of records.

public abstract integer count ( $q = '*', $db = null )
$q string

The COUNT expression. Defaults to '*'.

$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 integer

Number of records.

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

Please login to continue.