libs/library.php
/**
     * Sets a msg as received when in items and received = false
     * @param $msg
     * @return bool
     */
Sets a msg as received when in items and received = false
@param $msg
@return bool
Sets a msg as received when in items and received = false @param $msg @return bool
public function Received($msg)
    {
        foreach ($this->items as $key => $item) {
            if (preg_match('/^' . $item['msg'] . '$/', $msg) && $item['received'] == false) {
                $this->items [$key]['received'] = true;
                return true;
            }
        }
        return false;
    }
public function Received ( $ msg ) { foreach ( $ this -> items as $ key => $ item ) { if ( preg_match ( '/^' . $ item [ 'msg' ] . '$/' , $ msg ) && $ item [ 'received' ] == false ) { $ this -> items [ $ key ] [ 'received' ] = true ; return true ; } } return false ; }
Sets a msg as received when in items and received = false
 @param $msg
 @return bool
Sets a msg as received when in items and received = false @param $msg @return bool