I have this function in my PHP code.
<?php
$user = get_user_by_id($user_id);
?>
And I also have a JavaScript code on the same page. The JavaScript generates some value to a JS variable.
What I need to do is, using that JavaScript variable value as the argument of the above PHP function.
So, what's the simplest method for achieving this..?