PHP Classes


Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in

      CSV Handler  >  All threads  >  GetValues  >  (Un) Subscribe thread alerts  
Summary:GetValues function is only returning unique fields
Author:James LeRoy
Date:2007-01-22 18:28:31

  1. GetValues   Reply   Report abuse  
Picture of James LeRoy James LeRoy - 2007-01-22 18:28:31
I'm using a CSV file to plot a graph so I'm reading one column at a time with GetValues(). The problem is, I have multiple 0 values, but it only returns a single 0. I tested this with non zero values as well. Anything that repeats only gets returned once. I also need to remove the sort() at the end of that function as I want the data as it is ordered in the csv, but that didn't seem to make a difference in returning only unique values.

Thanks for sharing your work, it's been very helpful!