note 63064 added to ref.image

From: Date: Mon, 13 Mar 2006 05:17:37 +0000
Subject: note 63064 added to ref.image
Groups: php.notes 
Request: Send a blank email to php-notes+get-105635@lists.php.net to get a copy of this message
Representation decimal of a color in hexadecimal for use on functions of library GD. <?php // Representation hexadecimal $var = '#FFFFFF'; function getRgbFromGd($color_hex) { return array_map('hexdec', explode('|', wordwrap(substr($color_hex, 1), 2, '|', 1))); } print_r(getRgbFromGd($var)); // Output: Array ( [0] => 255 [1] => 255 [2] => 255 ) ?> ---- Server IP: 66.163.161.117 Probable Submitter: 200.222.199.68 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/ref.image.php Edit -- http://master.php.net/note/edit/63064 Del: integrated -- http://master.php.net/note/delete/63064/integrated Del: useless -- http://master.php.net/note/delete/63064/useless Del: bad code -- http://master.php.net/note/delete/63064/bad+code Del: spam -- http://master.php.net/note/delete/63064/spam Del: non-english -- http://master.php.net/note/delete/63064/non-english Del: in docs -- http://master.php.net/note/delete/63064/in+docs Del: other reasons-- http://master.php.net/note/delete/63064 Reject -- http://master.php.net/note/reject/63064 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#105635) next »