How can I get the total number of rows that are in a CSV file using PHP? I\'m using this method but can get it to work properly.
if (($fp = fopen(\"test.csv\
count(file('filename.csv', FILE_SKIP_EMPTY_LINES));