pass php var to javascript
<p>So, I run this javascript . this code gets the html generated by cart.php </p>

<pre><code>$.ajax({
    type: "GET",
    url: "/cart/cart.php",
    async: false,
    dataType: "html",
    success: function(html){
            $('#cart_content').html(html);          
    }
</code></pre>

<p>QUESTION ! how can get the value of a variable in cart.php ?</p>

<p>I would love something like this : <code>$('#cart_content').html($myvar);</code></p>
