note 93576 added to language.types.string
| From: | deminy at deminy dot net | Date: | Thu, 17 Sep 2009 04:08:16 +0000 |
| Subject: | note 93576 added to language.types.string | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-160766@lists.php.net to get a copy of this message | ||
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
.
----
Server IP: 209.41.74.194
Probable Submitter: 208.67.191.194
----
Manual Page -- http://www.php.net/manual/en/language.types.string.php
Edit -- https://master.php.net/note/edit/93576
Del: integrated -- https://master.php.net/note/delete/93576/integrated
Del: useless -- https://master.php.net/note/delete/93576/useless
Del: bad code -- https://master.php.net/note/delete/93576/bad+code
Del: spam -- https://master.php.net/note/delete/93576/spam
Del: non-english -- https://master.php.net/note/delete/93576/non-english
Del: in docs -- https://master.php.net/note/delete/93576/in+docs
Del: other reasons-- https://master.php.net/note/delete/93576
Reject -- https://master.php.net/note/reject/93576
Search -- https://master.php.net/manage/user-notes.php