<?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-05-13T22:27:09Z</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=11400&amp;oldid=prev</id>
		<title>Manivel: Created page with '{|Border=1 !Time !Narration |- |0:00 |Hi guys. This is a basic PHP tutorial.  |- |0:03 |I'm just going to run through how to use the echo function and how to set your tags up.  |…'</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=11400&amp;oldid=prev"/>
				<updated>2014-06-18T06:25:40Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;{|Border=1 !Time !Narration |- |0:00 |Hi guys. This is a basic PHP tutorial.  |- |0:03 |I&amp;#039;m just going to run through how to use the echo function and how to set your tags up.  |…&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 guys. This is a basic PHP tutorial. &lt;br /&gt;
|-&lt;br /&gt;
|0:03&lt;br /&gt;
|I'm just going to run through how to use the echo function and how to set your tags up. &lt;br /&gt;
|-&lt;br /&gt;
|0:08&lt;br /&gt;
|Right, those of you that are familiar with html, will know that there are your html tags to start your page, 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 your tags. This starts, this ends, and 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;
|Right, I've already saved my file, that's 'helloworld.php'. &lt;br /&gt;
|-&lt;br /&gt;
|0:36&lt;br /&gt;
|So, let's give that a save and have a look in here. &lt;br /&gt;
|-&lt;br /&gt;
|0:41&lt;br /&gt;
|Right, 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 echo function works like this: we've got echo, we've got some speech marks and we've got a line terminator which is the semicolon on your keyboard. &lt;br /&gt;
|-&lt;br /&gt;
|0:57&lt;br /&gt;
|And, our text goes in between here. Let's save that out 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 echo 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 slightly, because we're going to be using it quite a lot) these bits here don't represent line breaks, 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, what we've got at the moment is we've got 'echo', 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. So instead of these, we'll need inverted commas –  basically, that will let us show our image there. 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 that's pretty much the end of the tutorial. &lt;br /&gt;
|-&lt;br /&gt;
|2:13&lt;br /&gt;
|Right, we've got 'parse error' – 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 rubbish. 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, that's all you really need to know for now. Thanks for watching!&lt;/div&gt;</summary>
		<author><name>Manivel</name></author>	</entry>

	</feed>