note 128603 added to function.gettype

From: Date: Sun, 11 Jun 2023 12:37:35 +0000
Subject: note 128603 added to function.gettype
Groups: php.notes 
Request: Send a blank email to php-notes+get-220561@lists.php.net to get a copy of this message
Be careful comparing ReflectionParameter::getType() and gettype() as they will not return the same results for a given type. string - string // OK int - integer // Type mismatch bool - boolean // Type mismatch array - array // OK ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.13.130 (proxied: 51.81.200.63) ---- Manual Page -- https://php.net/manual/en/function.gettype.php Edit -- https://main.php.net/note/edit/128603 Del: integrated -- https://main.php.net/note/delete/128603/integrated Del: useless -- https://main.php.net/note/delete/128603/useless Del: bad code -- https://main.php.net/note/delete/128603/bad+code Del: spam -- https://main.php.net/note/delete/128603/spam Del: non-english -- https://main.php.net/note/delete/128603/non-english Del: in docs -- https://main.php.net/note/delete/128603/in+docs Del: other reasons-- https://main.php.net/note/delete/128603 Reject -- https://main.php.net/note/reject/128603 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#220561) next »