Skip to content
Advertisement

How to add serial number column in this PHP script? [closed]

I am not able to output serial number in this php script. Trying to add serial number for each of the products fetched from woocommerce data.

JavaScript

Advertisement

Answer

PHP can’t parse increments in strings, so you have to increment $counter explicitly:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement