Issue
can someone explain what this code does...
$objPHPExcel->getActiveSheet()->toArray(null, true,true,true);
Solution
$objPHPExcel
is variable pointing to an object which should have been instantiated somewheregetActiveSheet()
is a public method of that object that gets a return value (possibly of object type)toArray(null, true, true, true)
converts the return value (object) to an array and is a method of the returned object itself->
is a notation for accessing properties and methods of an object
This code line means - Give me the active excel sheet and convert it to an array.
If you want to dive into the code look for the PHP class of the object it should have comments on its methods.
Answered By - Gabriel Answer Checked By - Cary Denson (PHPFixing Admin)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.