[PHP7][Bug?] What is the difference between 'boolean' and 'bool'?
| From: | Daniel Korner | Date: | Wed, 16 Dec 2015 20:46:24 +0000 |
| Subject: | [PHP7][Bug?] What is the difference between 'boolean' and 'bool'? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-325293@lists.php.net to get a copy of this message | ||
Good Morning everyone :)
I'm somewhat confused about "boolean" and "bool" in PHP7. I only
found a documentation of the "boolean" type[1], which seems to imply, that
"bool" is merely an alias for "boolean.
But that doesn't seem to be the case, as "bool" behaves (in some cases) totally
different than "boolean" (as a type).[2]
As I couldn't finde any kind of documentation about this and google wasn't
helpfull at all, I'm asking this mailinglist in hope for an answer to the
question "what is the difference between 'boolean' and 'bool'".
---
Korner, Daniel
[1]
http://php.net/manual/en/language.types.boolean.php
[2]
https://gist.github.com/Dadie/6e7f297ea963d8c7ae68
Attachment: [application/pgp-signature] OpenPGP digital signature
Attachment: [application/pgp-signature] OpenPGP digital signature