웹컬러(WebColor) 를 RGB 로 변경
$background_color = "FF33CC";
$R = hexdec(substr($background_color, 0, 2));
$G = hexdec(substr($background_color, 2, 2));
$B = hexdec(substr($background_color, 4, 2));
echo "$R, $G, $B";
$R = hexdec(substr($background_color, 0, 2));
$G = hexdec(substr($background_color, 2, 2));
$B = hexdec(substr($background_color, 4, 2));
echo "$R, $G, $B";
[이 게시물은 관리자님에 의해 2011-10-31 17:12:10 PHP & HTML에서 이동 됨]
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기
댓글 2개