I want to add JavaScript variable to php echo
arr[i]='<?php echo $winner[javascript variable]; ?>';
Thanks
I want to add JavaScript variable to php echo
arr[i]='<?php echo $winner[javascript variable]; ?>';
Thanks
You can't.
The PHP has finished running by the time the JavaScript is executed.
If you want to pass data back you need to make a new HTTP request and run a PHP script from scratch.