Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Why not use a foreach loop instead of having a function called array_walk?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
adam.timberl...@gmail.com  
View profile  
 More options Jan 7 2008, 8:27 pm
Newsgroups: php.general
From: adam.timberl...@gmail.com
Date: Mon, 7 Jan 2008 17:27:55 -0800 (PST)
Local: Mon, Jan 7 2008 8:27 pm
Subject: Why not use a foreach loop instead of having a function called array_walk?
I was reading this article yesterday:
http://www.talkphp.com/advanced-php-programming/1886-how-would-i-appl...

I am wondering.. okay.. we can use array_walk but doesn't that just
loop through the items anyway ?? So why not just use the foreach loop
instead... is it a shorthand trick or is there any deeper reasoning
behind it... Thats my question!

I do have another question and that is if it is a shorthand version,
having a foreach loop isn't much more in terms of the letters you type
and so why have the PHP developers put it in there ??

It's puzzling me. Thank you in advance.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google