<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://script.spoken-tutorial.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=PHP-and-MySQL%2FC2%2FEcho-Function_%2FEnglish</id>
		<title>PHP-and-MySQL/C2/Echo-Function /English - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=PHP-and-MySQL%2FC2%2FEcho-Function_%2FEnglish"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=PHP-and-MySQL/C2/Echo-Function_/English&amp;action=history"/>
		<updated>2026-04-08T20:00:29Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.17</generator>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=PHP-and-MySQL/C2/Echo-Function_/English&amp;diff=517&amp;oldid=prev</id>
		<title>Chandrika: Created page with '{|Border=1 !Time !Narration |- |0:00 |Hi and welcome to a basic PHP tutorial.  |- |0:03 |I'll just go through how to use the &quot;echo&quot; function and how to set up your tags .  |- |0:…'</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=PHP-and-MySQL/C2/Echo-Function_/English&amp;diff=517&amp;oldid=prev"/>
				<updated>2012-11-29T06:27:51Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;{|Border=1 !Time !Narration |- |0:00 |Hi and welcome to a basic PHP tutorial.  |- |0:03 |I&amp;#039;ll just go through how to use the &amp;quot;echo&amp;quot; function and how to set up your tags .  |- |0:…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{|Border=1&lt;br /&gt;
!Time&lt;br /&gt;
!Narration&lt;br /&gt;
|-&lt;br /&gt;
|0:00&lt;br /&gt;
|Hi and welcome to a basic PHP tutorial. &lt;br /&gt;
|-&lt;br /&gt;
|0:03&lt;br /&gt;
|I'll just go through how to use the &amp;quot;echo&amp;quot; function and how to set up your tags . &lt;br /&gt;
|-&lt;br /&gt;
|0:08&lt;br /&gt;
|Those of you that are familiar with &amp;quot;html&amp;quot; will know that there are html tags to start your page and to end your page. &lt;br /&gt;
|-&lt;br /&gt;
|0:15&lt;br /&gt;
|They're not vital in an html page. As long as you've got an html extension, you're fine. &lt;br /&gt;
|-&lt;br /&gt;
|0:20&lt;br /&gt;
|However, in PHP, you need the tags. This starts and this ends. &lt;br /&gt;
|-&lt;br /&gt;
|0:25&lt;br /&gt;
|That's basically the standard notation for it. &lt;br /&gt;
|-&lt;br /&gt;
|0:29&lt;br /&gt;
|However, our content goes in between here. &lt;br /&gt;
|-&lt;br /&gt;
|0:32&lt;br /&gt;
|Now, I've already saved my file as &amp;quot;helloworld.php&amp;quot;. &lt;br /&gt;
|-&lt;br /&gt;
|0:36&lt;br /&gt;
|So, let's save that and have a look in here. &lt;br /&gt;
|-&lt;br /&gt;
|0:41&lt;br /&gt;
|Okay, there's nothing in the page at the moment but we've got our page set up. It's absolutely fine. &lt;br /&gt;
|-&lt;br /&gt;
|0:47&lt;br /&gt;
|The &amp;quot;echo&amp;quot; function works like this: we've got echo, we've got some double quotes and we've got a line terminator which is the semicolon mark. &lt;br /&gt;
|-&lt;br /&gt;
|0:57&lt;br /&gt;
|And our text goes in between here.  Let's save that and we'll refresh.  And there we go. &lt;br /&gt;
|-&lt;br /&gt;
|1:05&lt;br /&gt;
|Right, you can – and I find this very useful – write your &amp;quot;echo&amp;quot; function like this. &lt;br /&gt;
|-&lt;br /&gt;
|1:10&lt;br /&gt;
|Because when you put an html code inside your echo function (and just to let you know, if you haven't learnt html yet I suggest you pick it up, at least the basics, because we're going to be using it quite a lot) these bits here don't represent line breaks.&lt;br /&gt;
|-&lt;br /&gt;
|1:22&lt;br /&gt;
|For that you need to add your own html in. So '&amp;lt;br&amp;gt;' for line break and then 'New line'. &lt;br /&gt;
|-&lt;br /&gt;
|1:28&lt;br /&gt;
|We'll refresh this and there you go! Our html has been incorporated. &lt;br /&gt;
|-&lt;br /&gt;
|1:33&lt;br /&gt;
|Okay, just to let you know, this is one thing that a lot of people run into: 'image source equals' and your file goes there. &lt;br /&gt;
|-&lt;br /&gt;
|1:42&lt;br /&gt;
|However, at the moment we've got 'echo'.&lt;br /&gt;
|-&lt;br /&gt;
|1:46&lt;br /&gt;
|This shows that we're going to start our output and this here will show that we're ending our output. &lt;br /&gt;
|-&lt;br /&gt;
|1:52&lt;br /&gt;
|We don't end it here; we're going to end it here. &lt;br /&gt;
|-&lt;br /&gt;
|1:55&lt;br /&gt;
|So instead of these, we'll need inverted commas.&lt;br /&gt;
|-&lt;br /&gt;
|1:58&lt;br /&gt;
|Basically, that will let us show our image there. &lt;br /&gt;
|-&lt;br /&gt;
|2:02&lt;br /&gt;
|There's no file specified, but you get the picture.&lt;br /&gt;
|-&lt;br /&gt;
|2:05&lt;br /&gt;
|So, let me just show you what would happen if we keep these in and then with that I'll end the tutorial. &lt;br /&gt;
|-&lt;br /&gt;
|2:13&lt;br /&gt;
|Right, we've got 'Parse error'.&lt;br /&gt;
|-&lt;br /&gt;
|2:15&lt;br /&gt;
|We either need a comma or a semicolon to end, which proves that as we're coming up to here, we need a semicolon after this. &lt;br /&gt;
|-&lt;br /&gt;
|2:23&lt;br /&gt;
|But in actual fact, that's not true. &lt;br /&gt;
|-&lt;br /&gt;
|2:25&lt;br /&gt;
|So, just keep them as inverted commas.&lt;br /&gt;
|-&lt;br /&gt;
|2:30&lt;br /&gt;
|Okay, that's the basics of the echo function and the PHP tags.  Hope you enjoyed learning them.&lt;br /&gt;
|-&lt;br /&gt;
|2:34&lt;br /&gt;
|Thanks for watching!  This script has been translated by ---------------------------(translator's name) and this is -----------------------------------(narrator's name) signing off.&lt;/div&gt;</summary>
		<author><name>Chandrika</name></author>	</entry>

	</feed>