Re: array_walk() question
[email protected] (Shawn McKenzie)
| Newsgroups | php.general |
|---|---|
| Message-ID | <CABPrARjg1iiWNKu-xR9069Fm8mxXhx42-0-3Ytyx-D_cKZ=Omg@mail.gmail.com> |
You are echoing the return of array_walk which is true and echos as 1. On Wed, Feb 23, 2022 at 2: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] > -- Thanks! -Shawn