[PHP] Simple array question, array delete

2005-04-06 Thread Ryan A
Hey, I have a $data_recs array like this: 12 445 45655 4 343 etc when the user gives me a number, i have to check if its in the array and delete that entry...how do i do that? I have looked at the manual but have gotten confused with array pop,splice,array_key_exists etc Thanks, Ryan --

Re: [PHP] Simple array question, array delete

2005-04-06 Thread Josip Dzolonga
Ryan A wrote: Hey, I have a $data_recs array like this: 12 445 45655 4 343 etc when the user gives me a number, i have to check if its in the array and delete that entry...how do i do that? I have looked at the manual but have gotten confused with array pop,splice,array_key_exists etc Thanks,

Re: [PHP] Simple array question, array delete

2005-04-06 Thread Ken
On Apr 6, 2005 3:09 PM, Ryan A [EMAIL PROTECTED] wrote: Hey, I have a $data_recs array like this: 12 445 45655 4 343 etc when the user gives me a number, i have to check if its in the array and delete that entry...how do i do that? I have looked at the manual but have gotten

Re: [PHP] Simple array question, array delete

2005-04-06 Thread Ken
On Apr 6, 2005 3:27 PM, Ken [EMAIL PROTECTED] wrote: On Apr 6, 2005 3:09 PM, Ryan A [EMAIL PROTECTED] wrote: Hey, I have a $data_recs array like this: 12 445 45655 4 343 etc when the user gives me a number, i have to check if its in the array and delete that

Re: [PHP] Simple array question, array delete

2005-04-06 Thread Richard Lynch
On Wed, April 6, 2005 6:09 am, Ryan A said: when the user gives me a number, i have to check if its in the array and delete that entry...how do i do that? I have looked at the manual but have gotten confused with array pop,splice,array_key_exists etc http://php.net/array_search

Re: [PHP] Simple array question, array delete

2005-04-06 Thread Ryan A
On 4/7/2005 5:19:24 AM, [EMAIL PROTECTED] wrote: On Wed, April 6, 2005 6:09 am, Ryan A said: when the user gives me a number, i have to check if its in the array and delete that entry...how do i do that? I have looked at the manual but have gotten confused with array