variable in php with the same number as one in Javascript

0

I get data from a request in AJAX and get the number of elements using .lenght

I need to make a for in php that goes from 0 to that number I received from the request (using .lenght ),

Does anyone know how I can do this?

    
asked by anonymous 02.10.2017 / 20:42

1 answer

0

If I understand correctly, you just need to set the value of .length() to a variable, like this:

var len = Codigo para ir buscar

And then send this variable via ajax

    
03.10.2017 / 18:05