array= anthorarray

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

    #1

    array= anthorarray

    How do I empty an array? Remove all keys and values?

    Also how do I assign one assosiative array to another so that

    thisarray=thata rray?

    Thanks
    Newbie oak


  • Andy Hassall

    #2
    Re: array= anthorarray

    On Tue, 16 Aug 2005 22:18:53 GMT, "Oak Hall" <oak@scenicmls. com> wrote:
    [color=blue]
    >How do I empty an array? Remove all keys and values?[/color]

    Assign an empty array to it. There are other ways too.
    [color=blue]
    >Also how do I assign one assosiative array to another so that
    >
    >thisarray=that array?[/color]

    Just like that. What happened when you tried this?

    --
    Andy Hassall / <andy@andyh.co. uk> / <http://www.andyh.co.uk >
    <http://www.andyhsoftwa re.co.uk/space> Space: disk usage analysis tool

    Comment

    • Oak Hall

      #3
      Re: array= anthorarray

      Thank you, sorry it was another mistake and I was blaming it on that. Thanks
      Again

      "Andy Hassall" <andy@andyh.co. uk> wrote in message
      news:p1q4g11jaj aa8shfimnuminai dpmac7vtt@4ax.c om...[color=blue]
      > On Tue, 16 Aug 2005 22:18:53 GMT, "Oak Hall" <oak@scenicmls. com> wrote:
      >[color=green]
      >>How do I empty an array? Remove all keys and values?[/color]
      >
      > Assign an empty array to it. There are other ways too.
      >[color=green]
      >>Also how do I assign one assosiative array to another so that
      >>
      >>thisarray=tha tarray?[/color]
      >
      > Just like that. What happened when you tried this?
      >
      > --
      > Andy Hassall / <andy@andyh.co. uk> / <http://www.andyh.co.uk >
      > <http://www.andyhsoftwa re.co.uk/space> Space: disk usage analysis tool[/color]


      Comment

      • Alvaro G Vicario

        #4
        Re: array= anthorarray

        *** Oak Hall wrote/escribió (Tue, 16 Aug 2005 22:18:53 GMT):[color=blue]
        > How do I empty an array? Remove all keys and values?
        >
        > Also how do I assign one assosiative array to another so that
        >
        > thisarray=thata rray?[/color]

        In PHP arrays behave quite like any other variable types. You can unset()
        or simply assign a different value (no matter the type).

        --
        -- Álvaro G. Vicario - Burgos, Spain
        -- http://bits.demogracia.com - Mi sitio sobre programación web
        -- Don't e-mail me your questions, post them to the group
        --

        Comment

        Working...