WordPress at a glance
function is not described

POP3::get() public WP 1.0

{} It's a method of the class: POP3{}

No Hooks.

Return

Null. Nothing.

Usage

$POP3 = new POP3();
$POP3->get ( $msgNum );

Code of POP3::get() WP 5.5.1

<?php
function get ($msgNum) {
    //  Retrieve the specified msg number. Returns an array
    //  where each line of the msg is an array element.

    if(!isset($this->FP))
    {
        $this->ERROR = "POP3 get: " . _("No connection to server");
        return false;
    }

    $this->update_timer();

    $fp = $this->FP;
    $buffer = $this->BUFFER;
    $cmd = "RETR $msgNum";
    $reply = $this->send_cmd($cmd);

    if(!$this->is_ok($reply))
    {
        $this->ERROR = "POP3 get: " . _("Error ") . "[$reply]";
        return false;
    }

    $count = 0;
    $MsgArray = array();

    $line = fgets($fp,$buffer);
    while ( !preg_match('/^\.\r\n/',$line))
    {
        if ( $line[0] == '.' ) { $line = substr($line,1); }
        $MsgArray[$count] = $line;
        $count++;
        $line = fgets($fp,$buffer);
        if(empty($line))    { break; }
    }
    return $MsgArray;
}