title: I need to echo PHP variable in a JavaScript
body: <p>My code is</p>
  
  <pre><code>$selectedWallet = $_POST['wallet'];
    &lt;script&gt;
              $(document).ready(function(){
                       var oMain = new CMain({
                                      win_occurrence: 40,
                                      min_bet: 1,
                                      max_bet: 300,
                                      bet_time: 10000,
                                      money: "&lt;?php echo $SelectedWallet; ?&gt;",                 //STARING CREDIT FOR THE USER
                                      blackjack_payout: 1.5,
                                      game_cash: 500,
                                      fullscreen:true,
                                      check_orientation:true,
                                  });
  &lt;/script&gt;
  </code></pre>
  
  <p>I need to echo a PHP variable in this script i.e. money: "