Remote::postfields PHP Méthode

postfields() protected méthode

Internal method to handle post field data
protected postfields ( mixed $data ) : mixed
$data mixed
Résultat mixed
    protected function postfields($data)
    {
        if (is_object($data) || is_array($data)) {
            return http_build_query($data);
        } else {
            return $data;
        }
    }