2

This statement is perfectly working:

<?php
    echo b"foo";

What is the purpose of the b?

Dominic Harvey
  • 73
  • 1
  • 2
  • 8
  • 1
    Fun fact: There was even a [`is_binary()`](https://web.archive.org/web/20090125013821/http://php.net/manual/en/function.is-binary.php) function once. – Rizier123 Jun 17 '16 at 03:32
  • @Rizier123 this may just make it in to my test for our new php developer –  Jun 17 '16 at 03:37
  • @Dagon That would be a bit mean ;) There is only one sentence dedicated to `(binary)`/`b` in the [manual](http://php.net/manual/en/language.types.type-juggling.php#language.types.typecasting). Maybe you should just ask them how they would search for it, what they would do to find out what it is. – Rizier123 Jun 17 '16 at 03:39
  • @Dagon Don't forget to ask them, why this url: https://3v4l.org/3GOW8 is valid PHP :P – Rizier123 Jun 17 '16 at 03:49
  • @Rizier123 problem occurs when im expected to explain it! –  Jun 17 '16 at 03:52
  • @Dagon I will leave you now with that mystery :p – Rizier123 Jun 17 '16 at 03:57
  • @Rizier123 bastard! –  Jun 17 '16 at 05:45
  • lol thanks for your comments - Dragon, yes, I will certainly ask ;-) – Dominic Harvey Jun 17 '16 at 10:21
  • @Dagon One hint: [Labels](http://php.net/manual/en/control-structures.goto.php) + [Comments](http://php.net/manual/en/language.basic-syntax.comments.php) – Rizier123 Jun 18 '16 at 14:35

0 Answers0