I have this js script. Instead of "2175" I'd need to insert here a certain $x php variable. How do I go about that?
var options = {
useEasing : true,
useGrouping : true,
separator : ',',
decimal : '.' ,
prefix : '' ,
suffix : ''
}
var demo = new countUp("myTargetElement", 0, 2175, 0, 2.5, options);
demo.start();