I am currently looking for a way to insert JavaScript
into my php code, however, I cannot do it within an echo. I am considering using the following workaround:
<?php
some code
?>
<script type="text/javascript>
js things
</script>
<?php
more code
?>
I am, however, a bit worried about opening and closing the <?php
part. Is this considered bad practice and why?