hi everyone. im sure this is a newbie question could you explain why the output of:
<?php echo 0x50; ?>
= 80?
i know its * to muiltipy in php, so what is 'x' doing to zero (or 50) to get to 80?
thanks!?
pea-aech-pea wrote:hi everyone. im sure this is a newbie question could you explain why the output of: <?php echo 0x50; ?> = 80? i know its * to muiltipy in php, so what is 'x' doing to zero (or 50) to get to 80? thanks!?
you Newbie in computer field in general not only PHP 😉 what u wrote is the hex format 80 in the decmail format = 50 in the hex format
so when u write 0x50 you telling the PHP that this no. is in the hex format
goodluck
thanks
duh. its so obvious now you mention it!
:o