note 93576 deleted from language.types.string by sobak
| From: | sobak@php.net | Date: | Thu, 01 Dec 2016 06:00:23 +0000 |
| Subject: | note 93576 deleted from language.types.string by sobak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-207792@lists.php.net to get a copy of this message | ||
Note Submitter: deminy at deminy dot net
----
Although current documentation says 'A string literal can be specified in four different ways:
...', actually there is a fifth way to specify a (binary) string:
<?php $binary = b'This is a binary string'; ?>
The above statement declares a binary string using the 'b' prefix, which is available
since PHP 5.2.1. However, it will only have effect as of PHP 6.0.0, as noted on http://www.php.net/manual/en/function.is-binary.php
.