Re: Mixed return type - boolean and array/resource/closure or object

From: Date: Tue, 04 Mar 2014 00:26:36 +0000
Subject: Re: Mixed return type - boolean and array/resource/closure or object
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-323018@lists.php.net to get a copy of this message
Robert Stoll wrote: > I would like to know if a PHP built-in function/method exists which returns one of the > following combinations > - a boolean or an array > - a boolean or a resource > - a boolean or a closure > - a boolean or an object > > I searched in the language manual, but it is quite hard to be honest since there is not really > an overview. > Please get back to me if you are certain that there is not such a function/method or give me an > example if there is one. Off the top of my head, I can only name functions that return resource/boolean, such as fopen(). But as boolean might be used as failure indicator, there may be functions with the other return types. BTW: what do you need that information for? -- Christoph M. Becker

« previous php.general (#323018) next »