I just read thought php doucmentation for heredocs but I did not see any way to intent the code properly. Is this possible in php?
Right now I am doing this, but this is bad for readability.
<?php
if(something){
...
echo <<< END
This is a test. I am writing this
text out.
END;
} # end of if statment
I would like to have something like this:
<?php
if(something){
...
echo <<< END
This is a test. I am writing this
text out.
END;
} # end of if statment
I know that bash has a method to do this (although I cannot remember what it is), so I was wondering if it was possible to do in php. I don't think so but I thought I would ask.