public static function base64UrlSafeDecode($s)
    {
        $s = str_replace('_', '/', $s);
        $s = str_replace('-', '+', $s);
        $s = base64_decode($s);
        return ($s);
    }
public static function base64UrlSafeDecode($s)
    {
        $s = str_replace('_', '/', $s);
        $s = str_replace('-', '+', $s);
        $s = base64_decode($s);
        return ($s);
    }
public static function base64UrlSafeDecode ( $ s ) { $ s = str_replace ( '_' , '/' , $ s ) ; $ s = str_replace ( '-' , '+' , $ s ) ; $ s = base64_decode ( $ s ) ; return ( $ s ) ; }
Base64 Decode in a way that the result can be passed through HTML forms and URLs.

@param $s
@return mixed
Base64 Decode in a way that the result can be passed through HTML forms and URLs .