adam.jones2 Posted February 16, 2012 Share Posted February 16, 2012 on the wamp index page its outputs date in {} example {$langues[$langue]['titreConf']} how is this done? id rather used this than echos Link to comment Share on other sites More sharing options...
Ingolme Posted February 16, 2012 Share Posted February 16, 2012 Either it's a string, or a heredoc syntax. $num = 5;echo "There are {$num} elements"; // OR $num = 9;$str = <<<STRThere are {$num} elementsSTR;echo $str; Link to comment Share on other sites More sharing options...
adam.jones2 Posted February 16, 2012 Author Share Posted February 16, 2012 I cant see any echos on the page <dl class="content"><dt>{$langues[$langue]['versa']}</dt><dd>${apacheVersion} </dd><dt>{$langues[$langue]['versp']}</dt><dd>${phpVersion} </dd></br> <dd><ul> Link to comment Share on other sites More sharing options...
justsomeguy Posted February 16, 2012 Share Posted February 16, 2012 You might be looking at a template. They might also use print instead of echo. It's hard to tell by only seeing pieces of the code. Link to comment Share on other sites More sharing options...
adam.jones2 Posted February 17, 2012 Author Share Posted February 17, 2012 Here is the wamp index page index.php Link to comment Share on other sites More sharing options...
boen_robot Posted February 17, 2012 Share Posted February 17, 2012 Right above the HTML, you can see $pageContents = <<< EOPAGE and at the end of the HTML, you can see EOPAGE;echo $pageContents; So this is a HEREDOC, as demonstrated by Ingolme. Link to comment Share on other sites More sharing options...
adam.jones2 Posted February 17, 2012 Author Share Posted February 17, 2012 ok thanks for the info Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.