src/Serializer.php
public function serialize($value): string
    {
        if (is_array($value)) {
            return $this->packArray($value);
        }

        return $this->packValue($value);
    }
public function serialize($value): string
    {
        if (is_array($value)) {
            return $this->packArray($value);
        }

        return $this->packValue($value);
    }
public function serialize ( $ value ) : string { if ( is_array ( $ value ) ) { return $ this -> packArray ( $ value ) ; } return $ this -> packValue ( $ value ) ; }
Serialize array.

@param mixed $value

@return string
Serialize array .