Re: Handling Arrays

2003-09-03 Thread Antony Dovgal
On Tue, 2 Sep 2003 21:40:35 -0500 "John Macon" <[EMAIL PROTECTED]> wrote: > I have a quick question about arrays. I know that this is probably pretty easy for > most of you out there, so here it goes. > > If you remove $array[2], would $array[3] then automatically become the new $array[2]? > >

Re: Handling Arrays

2003-09-03 Thread Mike . Kent
<[EMAIL PROTECTED]> net> cc:

Re: Handling Arrays

2003-09-03 Thread Sue Flowers - JustAboutData.com
John: How do you plan to "remove" an $array[2]? If you are using associative arrays, then you can remove an element using the unset() function, and then the answer to your question is "yes", so to speak: For example: \n"; } $array = array( 'first' => 'one', 'second' => 'two', 'third' => 'thr

RE: Handling Arrays

2003-09-02 Thread John Macon
Sorry, I forgot that would help, I am using PHP 4, pulling from a mySQL database, I am trying to delete a record in an array before it gets written back into the table, should I be asking this in a PHP forum instead? I should have thought of that.

Handling Arrays

2003-09-02 Thread John Macon
I have a quick question about arrays. I know that this is probably pretty easy for most of you out there, so here it goes. If you remove $array[2], would $array[3] then automatically become the new $array[2]? Thanks in advance for your help.