src/shmop.php
protected function pack($data, int $seconds = 0): string
    {
        return serialize(
            array(
                'data' => $this->toPack($data),
                'timeout' => $seconds ? $this->microtime($seconds * 1000) : 0,
            )
        );
    }
protected function pack($data, int $seconds = 0): string
    {
        return serialize(
            array(
                'data' => $this->toPack($data),
                'timeout' => $seconds ? $this->microtime($seconds * 1000) : 0,
            )
        );
    }
protected function pack ( $ data , int $ seconds = 0 ) : string { return serialize ( array ( 'data' => $ this -> toPack ( $ data ) , 'timeout' => $ seconds ? $ this -> microtime ( $ seconds * 1000 ) : 0 , ) ) ; }
Package to an array and serialize to a string
@param mixed $data
@param int $seconds [optional]
@return string
Package to an array and serialize to a string