Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting the row counts #164

Open
JAKEVICENTE opened this issue Sep 26, 2019 · 0 comments
Open

getting the row counts #164

JAKEVICENTE opened this issue Sep 26, 2019 · 0 comments

Comments

@JAKEVICENTE
Copy link

JAKEVICENTE commented Sep 26, 2019

Hi Guys!

First thing 1st is that I'm a NEW pleb learning PHP

Currently, to get the row counts from my imported excel file. I used this code below:

 $rows = 0;
 foreach ($Reader as $key=>$Row) 
    {
    	if ($key!=0) // HEADER NOT INCLUDED
    	{
    		$rows++;
        }
    }

Is there a better way for this? I tried using rowCount but an error keeps occuring...

Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant