title: Concatenation php string to javascript string
body: <p>I have some question about concatenation php string to javascript string ... </p>
  
  <p>for example: </p>
  
  <p>php variable </p>
  
  <pre><code>$man = "Jamse";
  </code></pre>
  
  <p>and have javascript function </p>
  
  <pre><code>&lt;script&gt;
      if (document.getElementById("fname").value == "") {
          q = false;
          msg = &lt;?php echo 'Please fill first name'.$formErrors['fname'].'\n' ?&gt;;
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>i want to do something like this can anyone help me ?  </p>