FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » use of array_key_exists() to prevent duplicates?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: use of array_key_exists() to prevent duplicates? [message #173041 is a reply to message #173040] Fri, 18 March 2011 16:46 Go to previous messageGo to previous message
Captain Paralytic is currently offline  Captain Paralytic
Messages: 204
Registered: September 2010
Karma:
Senior Member
On Mar 18, 4:34 pm, William Gill <nos...@domain.invalid> wrote:
> On 3/18/2011 12:15 PM, Captain Paralytic wrote:> Well actually I'm not clear from your OP what you really need. If the
>> source program produces duplicates of old records as well as new ones,
>> then provided that the new records come after the old ones, I would
>> assume that the one you wanted to end up with was the latest one and
>> so you would not want to use either array_key_exists() or isset().
>
> To answer your question, not mentioned in the OP, but mentioned
> subsequently, edits to the memo field  should be maintained.

I did read that, but it doesn't say whether the edit record is the
first one or the last one. It is this that decides what one you wish
to keep.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Php Modal
Next Topic: Pipe the content of a variable to a process
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 12:05:12 GMT 2024

Total time taken to generate the page: 0.06121 seconds