ניצן - תודה רבה לך, הצלחתי.
וכמובן תודה רבה לכל אלה שניסו לעזור.
הקוד:
PHP קוד:
<?php
$string = "#iu3498r";
$new;
$out;
if (base64_encode($new) == $string)
{
$out = "BASE64";
}
else {
$out = "Not a BASE64";
}
if (!base64_decode($string))
{
$out = "can't decode";
}
else {
$new = base64_decode($string);
}
echo $out;
?>