Walking through an array

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • TrulyUnusualdotcom

    #1

    Walking through an array

    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 **
    ----------------------------------------------------------
    Best Usenet Service Providers 2026 ranked by Newsgroup Access Newsservers, Usenet Search, Features & Free Trial. Add VPN for privacy.

  • tony@tony.com

    #2
    Re: Walking through an array

    In article <1150131435_469 63@sp6iad.super feed.net>, mynews70@usenet .com
    says...[color=blue]
    > 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
    >
    >
    >[/color]
    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

    Comment

    • TrulyUnusualdotcom

      #3
      Re: Walking through an array

      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
      <tony@tony.co m> wrote in message
      news:MPG.1ef7b4 ce58a70d219898e 4@news-text.blueyonder .co.uk...[color=blue]
      > In article <1150131435_469 63@sp6iad.super feed.net>, mynews70@usenet .com
      > says...[color=green]
      >> 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
      >>
      >>
      >>[/color]
      > 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
      >[/color]



      Posted Via Usenet.com Premium Usenet Newsgroup Services
      ----------------------------------------------------------
      ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
      ----------------------------------------------------------
      Best Usenet Service Providers 2026 ranked by Newsgroup Access Newsservers, Usenet Search, Features & Free Trial. Add VPN for privacy.

      Comment

      • Paul Lautman

        #4
        Re: Walking through an array

        TrulyUnusualdot com wrote:[color=blue]
        > 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[/color]

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


        Comment

        • TrulyUnusualdotcom

          #5
          Re: Walking through an array

          Thanks Paul
          "Paul Lautman" <paul.lautman@b tinternet.com> wrote in message
          news:4f5vtqF1he bncU1@individua l.net...[color=blue]
          > TrulyUnusualdot com wrote:[color=green]
          >> 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[/color]
          >
          > Try downloading the PHP reference manual. It has examples of things like
          > array_walk
          >
          >[/color]


          Comment

          • Geoff Berrow

            #6
            Re: Walking through an array

            Message-ID: <MPG.1ef7b4ce58 a70d219898e4@ne ws-text.blueyonder .co.uk> from
            tony@tony.com contained the following:
            [color=blue]
            >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.[/color]


            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/

            Comment

            Working...