Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php print_r(hex2RGB('00ff67')); ?>
- #Out
- Array
- (
- [red] => 0
- [green] => 255
- [blue] => 103
- )
- <?php echo hex2RGB('#00ff67',true ); ?>
- __#Out__
- 0,255,103
- <?php echo hex2RGB('#2f6',true ); ?>
- __#Out__
- 34,255,102
- <?php echo hex2RGB('#22ff66',true ); ?>
- __#Out__
- 34,255,102
- <?php print_r(hex2RGB('##22ff66')); ?>
- __#Out__
- Array
- (
- [red] => 34
- [green] => 255
- [blue] => 102
- )
Add Comment
Please, Sign In to add comment