Re: function return references to nothing
| From: | Михаил Гаврилов | Date: | Fri, 26 Feb 2016 03:25:21 +0000 |
| Subject: | Re: function return references to nothing | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-325425@lists.php.net to get a copy of this message | ||
http://sandbox.onlinephpfunctions.com/code/e34c6049dc963cf8c21e4f1fbd15bf8549fe2af7
--
Best Regards,
Mike Gavrilov.
2016-02-26 8:22 GMT+05:00 Михаил Гаврилов <mikhail.v.gavrilov@gmail.com>:
>
> 2016-02-26 8:07 GMT+05:00 Aziz Saleh <azizsaleh@gmail.com>:
>
>> Sorry, I didn't notice you were printing original array and not found. I
>> would advise you remove all pass by reference logic, it would yield the
>> same results.
>
>
> This is different because I expected that when i change $found variable
> which referenced to ['aaa', 'bbb', 'ccc'] leaf after first
> call, i change
> leaf ['aaa', 'bbb', 'ccc'] in tree. If I remove reference logic
> code will
> be change only $found variable.
>
>
>
>
>
>
> --
> Best Regards,
> Mike Gavrilov.
>