I have a very strange output from base64_decode function. The output is a string with length of 18, however when I var_dump the string .. the length is 32! This affects the preg_match function that I'm applying for this string. Any idea why?
$input_line = base64_decode('OQA3ADgAMAA5ADgAMgA3ADQAMwA2ADAANwA5ADAAMAAwADAA');
var_dump($input_line);
Output
string(36) "978098274360790000"
Regards
$input_lineand print out the ascii value of each char, you'll find where they're hiding.. probably at the end of the string.var_dump($input_line(int));