I want to access javascript variable inside PHP. How Can I do this? 

below is my javascript onClick of button I am getting value in alert.

```
$(".check").click(function(){
  var priceee = document.getElementById("total-price").value;
  //alert(priceee);
});

```