- Joined
- Jun 18, 2004
- Location
- Michigan, US
Well im a bit lost and looking for help so lets see what you guys got for me.
I am making a PHP script that takes kismet .CSV files and combines them, I have that part working fine however the part I am having trouble with is removing the duplicate lines.
I am using the
function to take the .csv file and put each line into a array. Now I want to search the whole array for duplicate MAC address, when it finds one it deletes one of the lines containg the MAC.
As far as I can tell, the file function takes each line and goes "0 => info from line one, 1 => info from line two, 2 => info rom line three..."
So does anyone know how to search that array? I have tried
however it returns the first key then stops, as far as I know there is no way to get it to list ALL of the matching.
I am making a PHP script that takes kismet .CSV files and combines them, I have that part working fine however the part I am having trouble with is removing the duplicate lines.
I am using the
PHP:
file
As far as I can tell, the file function takes each line and goes "0 => info from line one, 1 => info from line two, 2 => info rom line three..."
So does anyone know how to search that array? I have tried
PHP:
array_search