This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function is_base64($str){ | |
if ( base64_encode(base64_decode($str, true)) === $str){ | |
return true; | |
} else { | |
return false; | |
} | |
} |