<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Vdiscussion &#187; HTML</title>
	<atom:link href="http://vdiscussion.com/category/theory-subjects/html-theory-subjects/feed/" rel="self" type="application/rss+xml" />
	<link>http://vdiscussion.com</link>
	<description>Vinoth Kumar&#039;s Discussion</description>
	<lastBuildDate>Wed, 09 Dec 2009 15:34:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Interpolating Functions and Expressions Within Strings Using PHP</title>
		<link>http://vdiscussion.com/interpolating-functions-and-expressions-within-strings-using-php/</link>
		<comments>http://vdiscussion.com/interpolating-functions-and-expressions-within-strings-using-php/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 18:04:59 +0000</pubDate>
		<dc:creator>Dora_david</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Software Programs]]></category>
		<category><![CDATA[Theory Subjects]]></category>
		<category><![CDATA[Interpolating Functions]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://vdiscussion.com/?p=120</guid>
		<description><![CDATA[You can put variables, object properties, and array elements (if the subscript is unquoted) directly in double-quoted strings: &#60;?php print "I have $children children."; print "You owe $amounts[payment] immediately."; print "My circle's diameter is $circle-&#62;diameter inches."; ?&#62; Interpolation with double-quoted strings places some limitations on the syntax of what can be interpolated. In the previous [...]]]></description>
			<content:encoded><![CDATA[<p>You can put variables, object properties, and array elements  (if the subscript is unquoted) directly in double-quoted strings:</p>
<blockquote>
<pre>&lt;?php
print "I have $children children.";
print "You owe $amounts[payment] immediately.";
print "My circle's diameter is $circle-&gt;diameter inches.";
?&gt;</pre>
</blockquote>
<p>Interpolation with double-quoted strings places some  limitations on the syntax of what can be interpolated. In the previous example,  <tt>$amounts['payment']</tt> had to be written as <tt>$amounts[payment]</tt> so  it would be interpolated properly. Use <a name="IDX-CH-01-080"></a><a name="IDX-CH-01-081"></a>curly braces around more complicated expressions to  interpolate them into a string. For example:</p>
<blockquote>
<pre>&lt;?php
print "I have less than {$children} children.";
print "You owe {$amounts['payment']} immediately.";
print "My circle's diameter is {$circle-&gt;getDiameter()} inches.";
?&gt;</pre>
</blockquote>
<p>Direct interpolation or using string concatenation also works  with heredocs. Interpolating with string concatenation in heredocs can look a  little strange because the closing heredoc<a name="IDX-CH-01-082"></a> delimiter  and the string concatenation operator have to be on separate lines:</p>
<blockquote>
<pre>&lt;?php
print &lt;&lt;&lt; END
Right now, the time is
END
. strftime('%c') . &lt;&lt;&lt; END
 but tomorrow it will be
END
. strftime('%c',time() + 86400);
?&gt;</pre>
</blockquote>
<p>Also, if you&#8217;re interpolating with heredocs, make sure to  include appropriate spacing for the whole string to appear properly. In the  previous example, <tt>Right now the time</tt> has to include a trailing space,  and <tt>but tomorrow it will be</tt> has to include leading and trailing  spaces.</p>
]]></content:encoded>
			<wfw:commentRss>http://vdiscussion.com/interpolating-functions-and-expressions-within-strings-using-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sample HTML program discussion</title>
		<link>http://vdiscussion.com/sample-html-program-discussion/</link>
		<comments>http://vdiscussion.com/sample-html-program-discussion/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 15:51:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Software Programs]]></category>
		<category><![CDATA[Theory Subjects]]></category>
		<category><![CDATA[HTML program]]></category>
		<category><![CDATA[Sample HTML program]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://vdiscussion.com/?p=93</guid>
		<description><![CDATA[HTML, or Hypertext Markup Language, is the most widely used language onWeb. As its name suggests, HTML is a markup language, which may sound complicated, although really you come across markup every day. Markup is just something you add to a document to give it special meaning; for example, when you use a highlighter pen [...]]]></description>
			<content:encoded><![CDATA[<p>HTML, or Hypertext Markup Language, is the most widely used language onWeb. As its name suggests, HTML is a markup language, which may sound complicated, although really you come across markup every day. Markup is just something you add to a document to give it special meaning; for example, when you use a highlighter pen you are marking up a document. When you are marking up a document for the Web, the special meaning you are adding indicates the structure of the document, and the markup indicates which part of the document is a heading, which parts are paragraphs, what belongs in a table, and so on. This markup in turn allows a Web browser to display your document appropriately.</p>
<p>When creating a document in a word processor, you can distinguish headings using a heading style (usually with a larger font) to indicate which part of the text is a heading. You can use the Enter (or Return) key to start a new paragraph. You can insert tables into your document, create bulleted lists,<br />
and so on. When marking documents up for the Web you are performing a very similar process. HTML and XHTML are the languages you use to tell aWeb browser where the heading is for aWeb page, what is a paragraph, what is part of a table and so on, so it can structure your document and render it properly. But what is the difference between HTML and XHTML?Well, first you should know that there are several versions of both HTML and XHTML, but don’t let that bother you—it all sounds a lot more complicated than it really is. Whereas there are several versions of HTML, each version just adds functionality on top of its predecessor (like a new version of some software might add some features or a new version of a dictionary might add a few extra words), or offers better ways of doing things that were already in earlier versions. So, you do not need to learn each version of HTML and XHTML, nor do you need to focus on one variation. This book teaches you all you need to know to writeWeb pages using HTML and XHTML. Indeed, as I mentioned in the Introduction, XHTML is just like the latest version of HTML, as you will see shortly (although to be accurate, while it is almost identical to the last version of HTML, it is technically HTML’s successor).</p>
<blockquote><p>Sample Code :</p>
<p>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Vdiscussion: About Us&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;h1&gt;About Vdiscussion.com&lt;/h1&gt;<br />
&lt;p&gt;Vdiscussion is free educational site<br />
&lt;/p&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p></blockquote>
<p>Save this code as filename.html.</p>
]]></content:encoded>
			<wfw:commentRss>http://vdiscussion.com/sample-html-program-discussion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
