Mailinglisten-Archive |
Moin,
So neuer tag, neues glück ;)
> Auftrag von Michael Siebert
> function hex2long($hex){
> $r = hexdec(substr($hex, 0, 2)) << 16
> $g = hexdec(substr($hex, 2, 2)) << 8
> $b = hexdec(substr($hex, 4, 2))
> return $r & $g & $b;
> }
Fast :)
Beim return + anstatt &, dann funzzt es wie es soll.
Aller besten dank!
Lg
michael
php::bar PHP Wiki - Listenarchive