My CSV has table like

Now, what I want to do is, for each record, I want to get the respective cell data and take them in variables. (I need to perform some tasks with the variables then).
e.g. (for each row, their values in variables)
$id = 1;
$name = 'Test';
and so on
Array could be used to do this.
For example,
$row_1 = (‘1’, ‘Test’, ‘chicago’, ‘testuser’, ’21’, ‘123456789’)
I tried searching google, but the results were not relevant to my query.
I adopted my own technique, by writing each line comma separated.