Created
March 5, 2021 13:52
-
-
Save fadhil-riyanto/60fcb8ed3165f57a5b048c4db563a68a to your computer and use it in GitHub Desktop.
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 | |
//example data | |
$data = "hmhmh"; | |
if ( base64_encode(base64_decode($data, true)) === $data){ | |
echo $data . ' itu valid'; | |
} else { | |
echo $data . ' itu tidak valid'; | |
} | |
//end :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment