Let's say I have 100 rows of php-variables that I want to save to javascript variables.
$data1;
$data2;
$data3;
$data4;
...
$data99;
$data100;
How can I save those variables in a function so I don't have to save it manually like:
var data1 = '<?php echo $data1; ?>';
...
Would be very great if it can be solved. So much work otherways :/