Right, I agree with Gabor on this, users should indeed see, in just one quick look, which variables might/will be altered by running that function. It also helps people intuitivly understand how certain functions "work", iow how to get a useful return from it.I think we should convert all to the 2nd type, it's just clearer...! any comments?:)
No, because the function definitions make sure which arguments are passed by reference. There is no need to even know this sort of information.
Users need to know where they need to pass a variable (as opposed to passing only a value), and what function modifies the passed parameter (as opposed to returning the resulting value).
Goba
Gabor Hojtsy wrote:
- Re: [PHP-DOC] Re: cvs: phpdoc /en/reference/array/... Jakub Vrana
- Re: [PHP-DOC] Re: cvs: phpdoc /en/reference/ar... Derick Rethans
- Re: [PHP-DOC] Re: cvs: phpdoc /en/referenc... Derick Rethans
- Re: [PHP-DOC] Re: cvs: phpdoc /en/ref... Curt Zirzow
- Re: [PHP-DOC] Re: cvs: phpdoc /en/ref... M. Sokolewicz
- Re: [PHP-DOC] Re: cvs: phpdoc /en/ref... Jakub Vrana
- Re: [PHP-DOC] Re: cvs: phpdoc /en/ref... Mehdi Achour
- Re: [PHP-DOC] Re: cvs: phpdoc /en/ref... Jakub Vrana
- Re: [PHP-DOC] Re: cvs: phpdoc /en/ref... Friedhelm Betz
- Re: [PHP-DOC] Re: cvs: phpdoc /en/reference/array/... Gabor Hojtsy
- Re: [PHP-DOC] Re: cvs: phpdoc /en/reference/ar... M. Sokolewicz
- Re: [PHP-DOC] Re: cvs: phpdoc /en/reference/array/func... Gabor Hojtsy
- Re: [PHP-DOC] cvs: phpdoc /en/reference/array/functions nat... Friedhelm Betz