fork(1) download
  1. <?php
  2. $string = "10100101";
  3. $binary = (binary) $string;
  4. var_dump($binary);
  5. $binary = b"10100101";
  6. var_dump($binary);
  7. ?>
Success #stdin #stdout 0.02s 24448KB
stdin
Standard input is empty
stdout
string(8) "10100101"
string(8) "10100101"