Re: [PHP] function return references to nothing
- Date: Thu, 25 Feb 2016 22:02:54 -0500
- From: Aziz Saleh <azizsaleh@xxxxxxxxx>
- Subject: Re: [PHP] function return references to nothing
On Thu, Feb 25, 2016 at 10:00 PM, Михаил Гаврилов <
> 2016-02-26 3:47 GMT+05:00 Aziz Saleh <azizsaleh@xxxxxxxxx>:
> > Is your code working as expected? In the second call it found matches
> > there are no keys matching "ddd"?
> yes, I wanted to show that if not found leaf ['aaa', 'bbb', 'ddd']
> then $found variable will be no initialized when function return by
> reference nothing.
> Best Regards,
> Mike Gavrilov.
Ignoring the notice, what I meant is that both return found, even thou the
second is indeed not found. So it is not working as expected: