How to access PHP varibles in Javascript or Jquery? Do I have to write
<?php echo $variable1 ?>
<?php echo $variable2 ?>
<?php echo $variable3 ?>
...
<?php echo $variablen ?>
I know I can store some variables in cookies,and access these values via cookies, but values in cookies are relatively stable values, moreover, there is a limit, you can not store many values in cookies, and the method is not that convenient. Is there other better way to do it?