This question already has an answer here:
I want to include a javascript variable into php code which is in my javascript code.
const args = inputline.value.split(" ");
line.innerHTML = line.innerHTML + "<?php echo clientInfo(args[1]); ?>";
I want to call the php function inside the javascript with a javascript variable.
</div>