Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Decodes data encoded with MIME base64
<?php base64_decode(string $string, bool $strict = false): string|false
<?php             return false;

        }



        return base64_encode(base64_decode($this->data)) === str_replace(["\n", "\r"], '', $this->data);

    }
<?php         preg_match($pattern, str_replace(["\n", "\r"], '', $data_url), $matches);



        if (is_array($matches) && array_key_exists('data', $matches)) {

            return base64_decode($matches['data']);

        }



        return null;
<?php             case $this->isBase64():

                return $this->initFromBinary(base64_decode($this->data));



            default:

                throw new NotReadableException("Image source not readable");