title: Convert bytes to binary
body: <p>I'm using this function <a href="https://php.net/random_bytes" rel="nofollow noreferrer">https://php.net/random_bytes</a>
  and i would to convert this random bytes to a binary view.</p>
  <p>I've tried to convert it to hex2bin and then i used to function pack to convert it to a binary but it doesn't work.</p>
  <p>How can convert a random bytes to a binary ?</p>