title: How to convert a variable to hex
body: <p>I have a variable <code>$foreground = 'FF03FF'</code> and I want to convert that variable to <code>$foreground = 0xFF03FF</code>. How do i can convert it using php? Please help me.</p>