PHP - base64_decode
Trieda
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ázov | Dátový typ | Predvolená hodnota | Popis |
|---|---|---|---|
| $data | string | The input data. | |
| $strict | bool | false | If the parameter is |
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
- function base64_encode (string $data) : string
