What Is An Easier Way To Write HTML Code Inside PHP Code?

Cian Brassinne

New member
I would like to add some HTML code in my php file (index.php).
The problem is that all I've seen on the web to write some HTML code inside the php file is to do something like this:

<?php
if (!file_exists('somefile.php'))
{
?>

<script type="text/javascript">
alert("Doesn't Exist");
</script>

<?php
}
else
{
echo 'Exists'
?>
 
Back
Top