함수 hexcolor2rgb()

hexcolor2rgb, hexcolor to rgb

1 PHP[ | ]

function hexcolor2rgb($hexcolor) {
	$r = substr($hexcolor, 1, 2);
	$g = substr($hexcolor, 3, 2);
	$b = substr($hexcolor, 5, 2);
	return array( hexdec($r), hexdec($g), hexdec($b) );
}

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}