How to retrieve a value from js file?
<p>Basically my question is <strong>How do you get the value of a variable inside a js file.</strong></p>

<p>E.g</p>

<pre><code>var now = (new Date() - 0);

other_var = 'Whats up';//how to pull the value of the other_var which is 'Whats Up'

key.embed();
</code></pre>

<p>How do get the value of the <code>other_var</code> using php? I only need the value of the variable which is 'whats up'. </p>

<p>Made some digging on my own, now I am able to get the content of the js file using <code>file_get_content</code> function in php, just don't know how to pull get the variable and pull its value.</p>
