By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,364 Members | 1,536 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,364 IT Pros & Developers. It's quick & easy.

Walking through an array

P: n/a
I'm reading PHP & MySQL for Dummies 2nd edition...ya ya I know..lame.
Anyway I got to the part about walking through an array and I just can't
seem to figure out what this would be used for. What is the point of this?
When would you use this? It says in great detail how to do it but it's
missing the the why and where.

Any help would be greatly appreciated.
Jon

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Jun 12 '06 #1
Share this Question
Share on Google+
5 Replies


P: n/a
In article <11**************@sp6iad.superfeed.net>, my******@usenet.com
says...
I'm reading PHP & MySQL for Dummies 2nd edition...ya ya I know..lame.
Anyway I got to the part about walking through an array and I just can't
seem to figure out what this would be used for. What is the point of this?
When would you use this? It says in great detail how to do it but it's
missing the the why and where.

Any help would be greatly appreciated.
Jon

Forgive me if I'm wrong but

.... this sounds as if you're learning programming and doing it
"backwards."

IMHO the best way to learn is to start writting your application then
learn the tools as you need them. "Walking" through an array will
eventually show up - I pretty much guarantee it.

tony
Jun 12 '06 #2

P: n/a
You might be right on the money there but I need to start somewhere... lol
I wanted to get through this book and then start so my trial and error could
be a little shorter that it usually is learning new things. My biggest
obsticle is a starting point. I was hoping this book would give me at least
that.

Jon
<to**@tony.com> wrote in message
news:MP************************@news-text.blueyonder.co.uk...
In article <11**************@sp6iad.superfeed.net>, my******@usenet.com
says...
I'm reading PHP & MySQL for Dummies 2nd edition...ya ya I know..lame.
Anyway I got to the part about walking through an array and I just can't
seem to figure out what this would be used for. What is the point of
this?
When would you use this? It says in great detail how to do it but it's
missing the the why and where.

Any help would be greatly appreciated.
Jon

Forgive me if I'm wrong but

... this sounds as if you're learning programming and doing it
"backwards."

IMHO the best way to learn is to start writting your application then
learn the tools as you need them. "Walking" through an array will
eventually show up - I pretty much guarantee it.

tony


Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Jun 12 '06 #3

P: n/a
TrulyUnusualdotcom wrote:
I'm reading PHP & MySQL for Dummies 2nd edition...ya ya I know..lame.
Anyway I got to the part about walking through an array and I just
can't seem to figure out what this would be used for. What is the
point of this? When would you use this? It says in great detail how
to do it but it's missing the the why and where.

Any help would be greatly appreciated.
Jon

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com


Try downloading the PHP reference manual. It has examples of things like
array_walk
Jun 12 '06 #4

P: n/a
Thanks Paul
"Paul Lautman" <pa**********@btinternet.com> wrote in message
news:4f*************@individual.net...
TrulyUnusualdotcom wrote:
I'm reading PHP & MySQL for Dummies 2nd edition...ya ya I know..lame.
Anyway I got to the part about walking through an array and I just
can't seem to figure out what this would be used for. What is the
point of this? When would you use this? It says in great detail how
to do it but it's missing the the why and where.

Any help would be greatly appreciated.
Jon

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com


Try downloading the PHP reference manual. It has examples of things like
array_walk

Jun 13 '06 #5

P: n/a
Message-ID: <MP************************@news-text.blueyonder.co.uk> from
to**@tony.com contained the following:
IMHO the best way to learn is to start writting your application then
learn the tools as you need them. "Walking" through an array will
eventually show up - I pretty much guarantee it.

I've never used array_walk Maybe I just never thought of using it and
coded it another way. But I wonder if the user was getting confused
with looping through an array which is used frequently?

But what tony says is correct, learn the basics, variables, if/else,
loops and few useful functions and the GET CODING. Your code will be an
inefficient mess at first but you can improve on that later. If you try
to learn it all before you start your head will explode.
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Jun 13 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.