NOVINKA: Najžiadanejšie rekvalifikačné kurzy teraz s 50% zľavou + kurz AI ZADARMO. Nečakaj, táto ponuka dlho nevydrží! Zisti viac:

PHP - base64_decode

Trieda

Koreň \ Bez triedy

Metóda - base64_decode

(PHP 4, PHP 5, PHP 7)

Decodes the data from base64 to original representation of these data.

Procedurálne

  • function base64_decode (string $data, bool $strict = false) : string

Parametre

NázovDátový typPredvolená hodnotaPopis
$datastring

The input data.

$strictbool false

If the parameter is true and the input data contains characters outside the base64 alphabet, the base64_decode() function will return false. Otherwise, the invalid characters will be removed.

Mávratovej hodnoty

Vracia: string

Returns the original data. Returns false if an error ocurred.

Príklady

<?php

echo base64_decode("SGVsbG8gd29ybGQh") ."\n";
echo base64_decode("NDI=") ."\n";
echo base64_decode("MQ==") ."\n";

Súvisiace manuály

      Aktivity