Re: How to get the 'return type' of a function?
| From: | Jochem Maas | Date: | Wed, 24 Feb 2010 07:42:32 +0000 |
| Subject: | Re: How to get the 'return type' of a function? | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-302334@lists.php.net to get a copy of this message | ||
Op 2/24/10 1:16 AM, Ashley Sheridan schreef:
> On Tue, 2010-02-23 at 19:19 -0600, Kevin Kinsey wrote:
>
>> Ashley Sheridan wrote:
>>> is_quantum() is pretty useful as well, if you want to see if it's sort
>>> of there and not at the same time. Probably turns into a cat in a box at
>>> some point too, everything quantum has cats in...
>>>
>>> Thanks,
>>> Ash
>>
>> So, should we add to the list:
>>
>> is_schrodingers_cat_alive()
>>
>> ??
>>
>> KDK
>>
>
>
> I think PHP would crash trying to return the boolean value from that
> one!
no. either it returns a random boolean, or the func signature is missing a
boolean $weOpenedTheBox parameter ... in which case it should be fully deterministic. :)
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
>
>