"함수 rgb2hexcolor()"의 두 판 사이의 차이

12번째 줄: 12번째 줄:
==같이 보기==
==같이 보기==
* [[함수 hexcolor2rgb()]]
* [[함수 hexcolor2rgb()]]
* [[함수 dechex()]]

2017년 4월 17일 (월) 09:52 판

rgb2hexcolor, rgb 2 hexcolor

1 PHP

function rgb2hexcolor($rgb) {
	return '#'.dechex($rgb[0]).dechex($rgb[1]).dechex($rgb[2]);
}

2 같이 보기

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