public function getLocalPort()
    {
        $address = $this->getLocalAddress();
        $pos = strrpos($address, ':');
        if (!$pos) {
            return 0;
        }
        return (int)substr(strrchr($address, ':'), 1);
    }
public function getLocalPort()
    {
        $address = $this->getLocalAddress();
        $pos = strrpos($address, ':');
        if (!$pos) {
            return 0;
        }
        return (int)substr(strrchr($address, ':'), 1);
    }
public function getLocalPort ( ) { $ address = $ this -> getLocalAddress ( ) ; $ pos = strrpos ( $ address , ':' ) ; if ( ! $ pos ) { return 0 ; } return ( int ) substr ( strrchr ( $ address , ':' ) , 1 ) ; }
Get local port.

@return int
Get local port .