note 120506 deleted from language.types.type-juggling by peehaa
| From: | peehaa@php.net | Date: | Wed, 22 Feb 2017 09:32:39 +0000 |
| Subject: | note 120506 deleted from language.types.type-juggling by peehaa | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-208785@lists.php.net to get a copy of this message | ||
Note Submitter: ryan dot jentzsch at gmail dot com
----
Note: binary casting was added to the language but never fully implemented. There is an RFC to
deprecate this feature as casting to binary is exactly like casting to string: https://wiki.php.net/rfc/binary_string_deprecation
<?php
echo b'Goodbye, world!' . PHP_EOL;
echo (binary)'<- Equivalent to (string)' . PHP_EOL;
?>