My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
getCell  
Updated Feb 4, 2010 by kazu....@gmail.com

Method:getCell

cell fetcher

gets the value of a specific cell by given coordinates

Note: That indexes start with zero, and headers are not searched!

For example if we are trying to grab the cell that is in the second row and the third column

name,age,skill
john,13,knows magic
tanaka,8,makes sushi
jose,5,dances salsa

we would do something like

var_export($csv->getCell(1, 2));

and get the following results

'makes sushi'
  1. Argument integer $x the row to fetch
  2. Argument integer $y the column to fetch
  • Visibility public
  • Returns mixed|false the value of the cell or false if the cell does

not exist

  • Also see getHeaders(), hasCell(), getRow(), getRows(), getColumn()


Sign in to add a comment
Powered by Google Project Hosting