Can php be modified to create a custom way to call a php function without opening and closing php tags? For example, given an example function like this that is incl
A similar effect is achievable using short_tags. Instead of doing
do
= $blah ?>
or
= callFunction() ?>
If you have php version 5.4 or greater, these tags will be supported. Prior to that, short_tags are disabled by defaut. Even in 5.4+, they can be disabled by the server so use it wiseley.
Another way is to echo html in a string so you don't have to switch in and out of php. Just remember to keep it readable for yourself and others:
" . $text . "