-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
oopsforgot the &.
array_walk($myarray, array(&$this, 'DoArrayStuff'),1);
On Wednesday 30 October 2002 02:38 pm, Paul Nicholson wrote:
> try(untested): array_walk($myarray, array($this, 'DoArrayStuff'),1);
> HTH!
> ~Paul
>
> On Wednesday 30 October
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
try(untested): array_walk($myarray, array($this, 'DoArrayStuff'),1);
HTH!
~Paul
On Wednesday 30 October 2002 02:08 pm, PHP List wrote:
> I think the fog is starting to clear, thanks for the help.
>
> I do have one more question:
> If I want to use arr
I think the fog is starting to clear, thanks for the help.
I do have one more question:
If I want to use array_walk in a class, how do I refer to a function in that
class?
Class MyClass
{
.
.
.
function DoArrayStuff(&$item1, $key, $nMode)
{
echo $item1;
}
f
While that is a good way to approach arrays, you are actually guaranteed
to get the array back in the order you added the elements in PHP.
-Rasmus
On Wed, 30 Oct 2002, Philip Hallstrom wrote:
> Yes... for the most part... think about it this way... (and please correct
> me if I'm wrong :)
>
> An
Yes... for the most part... think about it this way... (and please correct
me if I'm wrong :)
An associative array isn't ordered. It's key based. Think of it like a
dictionary, but one whose first and last several pages have been removed.
You wouldn't have any way of telling me the definition fo
5 matches
Mail list logo