note 117619 added to function.is-array

From: Date: Thu, 09 Jul 2015 10:26:42 +0000
Subject: note 117619 added to function.is-array
Groups: php.notes 
Request: Send a blank email to php-notes+get-203068@lists.php.net to get a copy of this message
functions like is_array,is_bool etc are generally used in if,elseif statements.Since they return a Boolean value,then why cant we store that Boolean value in a variable or display it?? $a=10; $b=is_array ($a); echo $b; This code is not showing any error but not displaying the Boolean value.What is the reason behind it?? ---- Server IP: 72.52.91.14 Probable Submitter: 1.39.34.18 ---- Manual Page -- http://php.net/manual/en/function.is-array.php Edit -- https://master.php.net/note/edit/117619 Del: integrated -- https://master.php.net/note/delete/117619/integrated Del: useless -- https://master.php.net/note/delete/117619/useless Del: bad code -- https://master.php.net/note/delete/117619/bad+code Del: spam -- https://master.php.net/note/delete/117619/spam Del: non-english -- https://master.php.net/note/delete/117619/non-english Del: in docs -- https://master.php.net/note/delete/117619/in+docs Del: other reasons-- https://master.php.net/note/delete/117619 Reject -- https://master.php.net/note/reject/117619 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#203068) next »