Re: array_walk() question

[email protected] (Aziz Saleh)
Newsgroups php.general
Message-ID <CAPJtNhUKtZdmb6EM5Xcmjbz7AFqFaixQQ9ZychFvkLpge7q8Qg@mail.gmail.com>
Lose the echo. array_walk returns true when its a success:
https://www.php.net/manual/en/function.array-walk.php and when you echo
true you get 1.

On Wed, Feb 23, 2022 at 3:55 PM Tedd Sperling <[email protected]>
wrote:

> Hi Gang:
>
> I had an odd thing happen with using the PHP array_walk() function.
>
> The problem is demonstrated below:
>
> http://citw.lcc.edu/~sperlt/citw185/test/array_walk.php
>
> What’s with the “1” appearing after the array_walk() function?
>
> Please review the above URL before offering comment. I don’t believe the
> function should work that way.
>
> Many thanks in advance for any answer.
>
> Thanks,
>
> Tedd
>
> Tedd Sperling
> [email protected]
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.