I have a variable $foreground = 'FF03FF'
and I want to convert that variable to $foreground = 0xFF03FF
. How do i can convert it using php? Please help me.
Asked
Active
Viewed 282 times
0

user2978324
- 13
- 4
-
1http://stackoverflow.com/questions/8537895/php-string-to-hex – Dec 03 '13 at 05:45