<?PHP function hex2color ( $strHexColor ) { $iColor = hexdec ( substr ( $strHexColor, 1 ) ); return sprintf ( '%d', $iColor ); } ?>
<?PHP $iColor = hex2color ( '#ff6464' ); print ( $iColor ); ?>