POP3::is_ok()publicWP 1.0

The following methods are internal to the class.

Method of the class: POP3{}

No Hooks.

Return

null. Nothing (null).

Usage

$POP3 = new POP3();
$POP3->is_ok ( $cmd );
$cmd **
-
Default: ""

POP3::is_ok() code WP 6.5.2

function is_ok ($cmd = "") {
    //  Return true or false on +OK or -ERR

    if( empty($cmd) )
        return false;
    else
        return( stripos($cmd, '+OK') !== false );
}