note 128770 added to language.types.boolean

From: Date: Mon, 31 Jul 2023 07:19:50 +0000
Subject: note 128770 added to language.types.boolean
Groups: php.notes 
Request: Send a blank email to php-notes+get-220730@lists.php.net to get a copy of this message
I also noticed when converting : for example var_dump((bool) "") // this will output false var_dump((bool) " ") // this will output true So mistakenly adding space between the parentheses can give you what you dont't want. ---- Server IP: 45.112.84.4 Probable Submitter: 45.91.157.134 (proxied: 2001:8f8:1135:5fba:b89a:518a:e50a:21bd) ---- Manual Page -- https://php.net/manual/en/language.types.boolean.php Edit -- https://main.php.net/note/edit/128770 Del: integrated -- https://main.php.net/note/delete/128770/integrated Del: useless -- https://main.php.net/note/delete/128770/useless Del: bad code -- https://main.php.net/note/delete/128770/bad+code Del: spam -- https://main.php.net/note/delete/128770/spam Del: non-english -- https://main.php.net/note/delete/128770/non-english Del: in docs -- https://main.php.net/note/delete/128770/in+docs Del: other reasons-- https://main.php.net/note/delete/128770 Reject -- https://main.php.net/note/reject/128770 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#220730) next »