- var_dump: documentation ( source)
- bin2hex: documentation ( source)
- function_exists: documentation ( source)
<?php
if (function_exists('openssl_random_pseudo_bytes')) {
$hash = openssl_random_pseudo_bytes(255);
$hash = bin2hex($hash);
var_dump($hash);
}