/** * Returns true if the string is base64 encoded, false otherwise. * * @return bool Whether or not $str is base64 encoded */ public function isBase64() { return UTF8::is_base64($this->str); }