Results 1 to 4 of 4

Thread: apply a function to all array elements

  1. #1

    Thread Starter
    Hyperactive Member Kagey's Avatar
    Join Date
    Sep 2000
    Location
    The Wilderness of New Brunswick
    Posts
    294

    apply a function to all array elements

    Yo,

    I just need to know what the method is to apply a function to all elements in an array, i forget what the dang thing is

  2. #2
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    apply a function to a value in an array????

    somefunct($arrayvalue[0]);

    like that??

  3. #3

    Thread Starter
    Hyperactive Member Kagey's Avatar
    Join Date
    Sep 2000
    Location
    The Wilderness of New Brunswick
    Posts
    294
    i found it, its called array_walk

  4. #4
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Originally posted by Kagey
    i found it, its called array_walk
    That's pretty cool. I'll have to remember that one.
    My evil laugh has a squeak in it.

    kristopherwilson.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width