<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.twig.es/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.twig.es/index.php?action=history&amp;feed=atom&amp;title=PHP_echo</id>
		<title>PHP echo - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.twig.es/index.php?action=history&amp;feed=atom&amp;title=PHP_echo"/>
		<link rel="alternate" type="text/html" href="https://wiki.twig.es/index.php?title=PHP_echo&amp;action=history"/>
		<updated>2026-05-06T17:39:20Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.0</generator>

	<entry>
		<id>https://wiki.twig.es/index.php?title=PHP_echo&amp;diff=2421&amp;oldid=prev</id>
		<title>George2 at 09:18, 3 September 2015</title>
		<link rel="alternate" type="text/html" href="https://wiki.twig.es/index.php?title=PHP_echo&amp;diff=2421&amp;oldid=prev"/>
				<updated>2015-09-03T09:18:42Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 09:18, 3 September 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Note - single quotes expand variables, double ones do not &amp;lt;br&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>George2</name></author>	</entry>

	<entry>
		<id>https://wiki.twig.es/index.php?title=PHP_echo&amp;diff=2420&amp;oldid=prev</id>
		<title>George2: Created page with &quot;&lt;source lang=&quot;php&quot;&gt;   &lt;?php echo &quot;Hello World&quot;;  echo &quot;This spans multiple lines. The newlines will be output as well&quot;;  echo &quot;This spans\nmultiple lines. The newlines will be...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.twig.es/index.php?title=PHP_echo&amp;diff=2420&amp;oldid=prev"/>
				<updated>2015-09-03T09:16:24Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;   &amp;lt;?php echo &amp;quot;Hello World&amp;quot;;  echo &amp;quot;This spans multiple lines. The newlines will be output as well&amp;quot;;  echo &amp;quot;This spans\nmultiple lines. The newlines will be...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
echo &amp;quot;Hello World&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;This spans&lt;br /&gt;
multiple lines. The newlines will be&lt;br /&gt;
output as well&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;This spans\nmultiple lines. The newlines will be\noutput as well.&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;Escaping characters is done \&amp;quot;Like this\&amp;quot;.&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
// You can use variables inside of an echo statement&lt;br /&gt;
$foo = &amp;quot;foobar&amp;quot;;&lt;br /&gt;
$bar = &amp;quot;barbaz&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;foo is $foo&amp;quot;; // foo is foobar&lt;br /&gt;
&lt;br /&gt;
// You can also use arrays&lt;br /&gt;
$baz = array(&amp;quot;value&amp;quot; =&amp;gt; &amp;quot;foo&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;this is {$baz['value']} !&amp;quot;; // this is foo !&lt;br /&gt;
&lt;br /&gt;
// Using single quotes will print the variable name, not the value&lt;br /&gt;
echo 'foo is $foo'; // foo is $foo&lt;br /&gt;
&lt;br /&gt;
// If you are not using any other characters, you can just echo variables&lt;br /&gt;
echo $foo;          // foobar&lt;br /&gt;
echo $foo,$bar;     // foobarbarbaz&lt;br /&gt;
&lt;br /&gt;
// Some people prefer passing multiple parameters to echo over concatenation.&lt;br /&gt;
echo 'This ', 'string ', 'was ', 'made ', 'with multiple parameters.', chr(10);&lt;br /&gt;
echo 'This ' . 'string ' . 'was ' . 'made ' . 'with concatenation.' . &amp;quot;\n&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
echo &amp;lt;&amp;lt;&amp;lt;END&lt;br /&gt;
This uses the &amp;quot;here document&amp;quot; syntax to output&lt;br /&gt;
multiple lines with $variable interpolation. Note&lt;br /&gt;
that the here document terminator must appear on a&lt;br /&gt;
line with just a semicolon. no extra whitespace!&lt;br /&gt;
END;&lt;br /&gt;
&lt;br /&gt;
// Because echo does not behave like a function, the following code is invalid.&lt;br /&gt;
($some_var) ? echo 'true' : echo 'false';&lt;br /&gt;
&lt;br /&gt;
// However, the following examples will work:&lt;br /&gt;
($some_var) ? print 'true' : print 'false'; // print is also a construct, but&lt;br /&gt;
                                            // it behaves like a function, so&lt;br /&gt;
                                            // it may be used in this context.&lt;br /&gt;
echo $some_var ? 'true': 'false'; // changing the statement around&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>George2</name></author>	</entry>

	</feed>