Hi I have a CSV file that needs filtering, from A-C, D-F and so on
Aaron, Male, aaron@website.com
Arianne, Female, arianne@something.com
Bea, Female, bea@hello.com
Carlos, Male, carlos@website.com
Drake, Male, drake@website.com
Delilah, Female, del@hello.com
Erica, Female, erika@webisite.com
Flint, Male, flint@something.com
Im not good at PHP and I tried to fix it by doing this code below.
<?php
$file = fopen('LoggedInUsers.csv', 'r');
$first = array('Aaron');
$last = array('Carlos');
while (($line = fgetcsv($file)) !== FALSE) {
list($name, $log, $department) = $line;
$firstt = array('Aaron');
if ($first < 0) {
}
$last = array ('Carlos');
if ($last < 0) {
}
?>