ccvs_count

int ccvs_count(string session, string status) 

Counts the number of invoices with a certain status.

Returns:

Number of matching invoices on success; 0 on failure

Description:

ccvs_count() returns the number of invoices in a given state. Any of the status strings plus the string all may be used; all returns the total number of invoices in the session. session must be a valid session ID as returned by ccvs_init().

Note that this function returns 0 on error or if there are no matching invoices. In this case, you can use ccvs_textvalue() to resolve the ambiguity. If an error has occurred in ccvs_count(), ccvs_textvalue() returns the empty string, and if no error occurred but no matching invoices were found, a string is returned containing ...

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.