Hi I am viewing xls table in php using below code. I want to count the no of row of the table below the line. But its not appearing the result. Result is showing O, but it should be 6. Please have a look & advise.
Why don’t you just echo $x as that’s your row count?
In any case, the reason it isn’t working is because the only thing you do with $table is assign an opening table tag to it - the rest is just echoed directly to the screen. You need to append all the other output to it if you want this method to work, then echo it to produce the output.