"PHP random bytes()"의 두 판 사이의 차이

 
(사용자 2명의 중간 판 3개는 보이지 않습니다)
1번째 줄: 1번째 줄:
==개요==
==개요==
{{DISPLAYTITLE:PHP random_bytes()}}
;PHP random_bytes()
;PHP random_bytes()


<source lang='php'>
<syntaxhighlight lang='php' run>
$bytes = random_bytes(5);
$bytes = random_bytes(5);
var_dump(bin2hex($bytes));
var_dump(bin2hex($bytes));
# string(10) "385e33f741"
</syntaxhighlight>
</source>


==같이 보기==
==같이 보기==
14번째 줄: 14번째 줄:
* [[라라벨 str_random()]]
* [[라라벨 str_random()]]


==참고 자료==
==참고==
* http://php.net/manual/en/function.random-bytes.php
* http://php.net/manual/en/function.random-bytes.php


[[분류: PHP]]
[[분류: PHP]]

2023년 5월 14일 (일) 01:48 기준 최신판

1 개요[ | ]

PHP random_bytes()
$bytes = random_bytes(5);
var_dump(bin2hex($bytes));

2 같이 보기[ | ]

3 참고[ | ]

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