Skip to content

Instantly share code, notes, and snippets.

View zahmaci's full-sized avatar

Hüseyin ZAHMACIOĞLU zahmaci

View GitHub Profile
@zahmaci
zahmaci / is_base64.php
Last active August 29, 2015 14:22
Check if a string base64 encoded
<?php
function is_base64($str){
if ( base64_encode(base64_decode($str, true)) === $str){
return true;
} else {
return false;
}
}