"PHP base convert()"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-source +syntaxhighlight))
1번째 줄: 1번째 줄:
==개요==
==개요==
;PHP base convert()
{{DISPLAYTITLE:PHP base_convert()}}
<syntaxhighlight lang='php'>
;PHP base_convert()
<syntaxhighlight lang='php' run>
$hexadecimal = 'A37334';
$hexadecimal = 'A37334';
echo base_convert($hexadecimal, 16, 2);
echo base_convert($hexadecimal, 16, 2); # 101000110111001100110100
# 101000110111001100110100
</syntaxhighlight>
</syntaxhighlight>
<syntaxhighlight lang='php'>
<syntaxhighlight lang='php' run>
$hex = "E196";  
$hex = "E196";  
echo base_convert($hex,16,8);
echo base_convert($hex,16,8); # 160626
# 160626
</syntaxhighlight>
</syntaxhighlight>



2021년 5월 5일 (수) 17:51 판

1 개요

PHP base_convert()
$hexadecimal = 'A37334';
echo base_convert($hexadecimal, 16, 2); # 101000110111001100110100
$hex = "E196"; 
echo base_convert($hex,16,8); # 160626

2 같이 보기

3 참고

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