Finds a value in a CSV file based on its column and row header
mixed intersect ( string $filename , mixed $column , mixed $row )
- filename
- Path to CSV file
- column
- Column header as it appears in CSV file
- row
- Row header as it appears in CSV file
Returns value at intersection on success (casted, e.g. could be string
or float
depending on value) or NULL
on failure.
- Assumes that cells in the first row are row headers and cells in the first column are column headers
- The first cell of the first row will be ignored and attempts to search by it will return
NULL
, hence it is empty in the example above