Script invocation similar to ASP <%= %>
| From: | Bjoern Werkmann | Date: | Fri, 04 May 2001 19:05:24 +0000 |
| Subject: | Script invocation similar to ASP <%= %> | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-51465@lists.php.net to get a copy of this message | ||
Hi there,
pedantic as it might seem, ..., but is there a way to implement the
following ASP snippet in PHP
<%
Dim PAGE_TITLE
PAGE_TITLE = "My Page"
%>
<html>
<head>
<title> <%=PAGE_TITLE%> </title>
</head>
...
</html>
Especially important is the use of '<%='. I'd like to get rid of the echo
in '<?php echo $PAGE_TITLE?>'.