Answer the question
In order to leave comments, you need to log in
How does php interpret this =$htmltitle?>?
It's kind of like a codeigniter
context like this
<?=$htmltitle?>
how can this even work on php 5.1.9
Answer the question
In order to leave comments, you need to log in
Like <?php echo $htmltitle; ?>
nl2.php.net/manual/en/ini.core.php#ini.short-open-tag
The feature
is very old.
This is how “native” templates look like in… ahem… pure PHP… :)
I tried a lot of things: from the very first versions of smarti to XSLT. PHP templates are my favorite things to do.
> I would have written a bunch of php coders mixed with html in my template, I would have planted it.
In fact, PHP itself is a templating engine first and foremost. Or for {{var}} you don't kill? Just don't like php? In general, <?= now (in 5.4) will not be disabled at all (before 5.4, you can disable it, why <?= and <? were not recommended for compatibility reasons, <?php echo $var; ?> works everywhere. Now everywhere (>=5.4 ) will work for <?=$var as well; now it's safe to use and you'll see it more often.
There are a lot of skeletons in php syntax.
Here are a couple of examples:
1.
<?php
/* ?> */
echo "test"
<?php
// ?>
echo "test"
<?php
/* ?> */
echo "test" ?>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question