<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
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/"
> <channel><title>Comments on: Diving into PHP: Day 8</title> <atom:link href="http://blog.themeforest.net/screencasts/diving-into-php-day-8/feed/" rel="self" type="application/rss+xml" /><link>http://blog.themeforest.net/screencasts/diving-into-php-day-8/</link> <description>The ThemeForest Blog</description> <lastBuildDate>Fri, 18 Dec 2009 19:09:10 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.9.1</generator> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>By: HTML, CSS, PHP and jQuery Killer Tutorials &#124; Evan Mullins Circlecube ReBlog</title><link>http://blog.themeforest.net/screencasts/diving-into-php-day-8/comment-page-1/#comment-13449</link> <dc:creator>HTML, CSS, PHP and jQuery Killer Tutorials &#124; Evan Mullins Circlecube ReBlog</dc:creator> <pubDate>Fri, 12 Jun 2009 17:49:13 +0000</pubDate> <guid
isPermaLink="false">http://blog.themeforest.net/?p=1349#comment-13449</guid> <description>[...] Diving into PHP: Day 8 [...]</description> <content:encoded><![CDATA[<p>[...] Diving into PHP: Day 8 [...]</p> ]]></content:encoded> </item> <item><title>By: A Crash-Course in WordPress Plugin Development &#124; Ouech.net</title><link>http://blog.themeforest.net/screencasts/diving-into-php-day-8/comment-page-1/#comment-9160</link> <dc:creator>A Crash-Course in WordPress Plugin Development &#124; Ouech.net</dc:creator> <pubDate>Fri, 24 Apr 2009 16:32:39 +0000</pubDate> <guid
isPermaLink="false">http://blog.themeforest.net/?p=1349#comment-9160</guid> <description>[...] When mixing PHP and HTML, heredocs are an easy way to clean up your code. By using the syntax &lt;&lt;&lt;KEY, we can then insert regular html. We designate the closing of our html block by restating our key - in this case, EOT (for end of text). For more information, review the &#8220;Diving into PHP: Day 8&#8243; video on the ThemeForest blog. [...]</description> <content:encoded><![CDATA[<p>[...] When mixing PHP and HTML, heredocs are an easy way to clean up your code. By using the syntax &lt;&lt;&lt;KEY, we can then insert regular html. We designate the closing of our html block by restating our key &#8211; in this case, EOT (for end of text). For more information, review the &#8220;Diving into PHP: Day 8&#8243; video on the ThemeForest blog. [...]</p> ]]></content:encoded> </item> <item><title>By: Jason</title><link>http://blog.themeforest.net/screencasts/diving-into-php-day-8/comment-page-1/#comment-8676</link> <dc:creator>Jason</dc:creator> <pubDate>Tue, 14 Apr 2009 16:52:03 +0000</pubDate> <guid
isPermaLink="false">http://blog.themeforest.net/?p=1349#comment-8676</guid> <description>I am not sure if I understand why using single quotes is faster when it seems like you have to go through more work than just having double quotes take care of it all.echo &quot;This is an example using a fake $variable.&quot;;as opposed to:echo &#039;This is an example using a fake&#039; . $variable . &#039;.&#039;Can anyone answer that?  Does Jeff mean it is slightly quicker because it is just one keystroke instead of two?Since I am starting out, I want to figure out the best process so I can form form good habits.If anyone knows, please tell.</description> <content:encoded><![CDATA[<p>I am not sure if I understand why using single quotes is faster when it seems like you have to go through more work than just having double quotes take care of it all.</p><p>echo &#8220;This is an example using a fake $variable.&#8221;;</p><p>as opposed to:</p><p>echo &#8216;This is an example using a fake&#8217; . $variable . &#8216;.&#8217;</p><p>Can anyone answer that?  Does Jeff mean it is slightly quicker because it is just one keystroke instead of two?</p><p>Since I am starting out, I want to figure out the best process so I can form form good habits.</p><p>If anyone knows, please tell.</p> ]]></content:encoded> </item> <item><title>By: Angelina</title><link>http://blog.themeforest.net/screencasts/diving-into-php-day-8/comment-page-1/#comment-8273</link> <dc:creator>Angelina</dc:creator> <pubDate>Mon, 06 Apr 2009 22:36:41 +0000</pubDate> <guid
isPermaLink="false">http://blog.themeforest.net/?p=1349#comment-8273</guid> <description>thank you!</description> <content:encoded><![CDATA[<p>thank you!</p> ]]></content:encoded> </item> <item><title>By: How to Create PDF Files With PHP &#124; Flash Web Design</title><link>http://blog.themeforest.net/screencasts/diving-into-php-day-8/comment-page-1/#comment-7006</link> <dc:creator>How to Create PDF Files With PHP &#124; Flash Web Design</dc:creator> <pubDate>Fri, 13 Mar 2009 06:08:35 +0000</pubDate> <guid
isPermaLink="false">http://blog.themeforest.net/?p=1349#comment-7006</guid> <description>[...] variables for later use. In case you don&#8217;t recognize the text variable, it&#8217;s a heredoc (Diving into PHP, Day 8). Finally, in order to use the FPDF library, we have to create a FPDF object, which we will call [...]</description> <content:encoded><![CDATA[<p>[...] variables for later use. In case you don&#8217;t recognize the text variable, it&#8217;s a heredoc (Diving into PHP, Day 8). Finally, in order to use the FPDF library, we have to create a FPDF object, which we will call [...]</p> ]]></content:encoded> </item> <item><title>By: In the Woods - How to Create PDF Files With PHP</title><link>http://blog.themeforest.net/screencasts/diving-into-php-day-8/comment-page-1/#comment-6828</link> <dc:creator>In the Woods - How to Create PDF Files With PHP</dc:creator> <pubDate>Mon, 09 Mar 2009 14:31:24 +0000</pubDate> <guid
isPermaLink="false">http://blog.themeforest.net/?p=1349#comment-6828</guid> <description>[...] variables for later use. In case you don&#8217;t recognize the text variable, it&#8217;s a heredoc (Diving into PHP, Day 8). Finally, in order to use the FPDF library, we have to create a FPDF object, which we will call [...]</description> <content:encoded><![CDATA[<p>[...] variables for later use. In case you don&#8217;t recognize the text variable, it&#8217;s a heredoc (Diving into PHP, Day 8). Finally, in order to use the FPDF library, we have to create a FPDF object, which we will call [...]</p> ]]></content:encoded> </item> <item><title>By: Pix</title><link>http://blog.themeforest.net/screencasts/diving-into-php-day-8/comment-page-1/#comment-5751</link> <dc:creator>Pix</dc:creator> <pubDate>Wed, 18 Feb 2009 12:00:01 +0000</pubDate> <guid
isPermaLink="false">http://blog.themeforest.net/?p=1349#comment-5751</guid> <description>@Shane Sponagle
thanks i&#039;ve noticed that,was just a copy-paste error but my problem here is not the echo thing is the whole heredocs block
i solved thanks to Dean, basically i have to watch the last EOT; and be sure there is NO white space on that line
thanks!</description> <content:encoded><![CDATA[<p>@Shane Sponagle<br
/> thanks i&#8217;ve noticed that,was just a copy-paste error but my problem here is not the echo thing is the whole heredocs block<br
/> i solved thanks to Dean, basically i have to watch the last EOT; and be sure there is NO white space on that line<br
/> thanks!</p> ]]></content:encoded> </item> <item><title>By: Dean</title><link>http://blog.themeforest.net/screencasts/diving-into-php-day-8/comment-page-1/#comment-5661</link> <dc:creator>Dean</dc:creator> <pubDate>Tue, 17 Feb 2009 09:16:07 +0000</pubDate> <guid
isPermaLink="false">http://blog.themeforest.net/?p=1349#comment-5661</guid> <description>@Brenelz:
&quot;For the lines of:
$myvar = &lt;&lt;&lt;EOT
EOF;You have to make sure that there is no whitespace on these lines.&quot;The only line you have to watch out for is the EOF; - there can be no whitespace on this line.If you indent your code and you have a heredoc inside an if statement, you must make sure that EOF; is not indented.Also it&#039;s not possible to use constants inside a heredoc statement which can be a pain sometimes.Because I don&#039;t intermix PHP and HTML (except for echoing out variables), I often use heredoc to build large blocks of html and then echo out the variable into the html template.</description> <content:encoded><![CDATA[<p>@Brenelz:<br
/> &#8220;For the lines of:<br
/> $myvar = &lt;&lt;&lt;EOT<br
/> EOF;</p><p>You have to make sure that there is no whitespace on these lines.&#8221;</p><p>The only line you have to watch out for is the EOF; &#8211; there can be no whitespace on this line.</p><p>If you indent your code and you have a heredoc inside an if statement, you must make sure that EOF; is not indented.</p><p>Also it&#8217;s not possible to use constants inside a heredoc statement which can be a pain sometimes.</p><p>Because I don&#8217;t intermix PHP and HTML (except for echoing out variables), I often use heredoc to build large blocks of html and then echo out the variable into the html template.</p> ]]></content:encoded> </item> <item><title>By: Kathleen</title><link>http://blog.themeforest.net/screencasts/diving-into-php-day-8/comment-page-1/#comment-5630</link> <dc:creator>Kathleen</dc:creator> <pubDate>Mon, 16 Feb 2009 20:50:38 +0000</pubDate> <guid
isPermaLink="false">http://blog.themeforest.net/?p=1349#comment-5630</guid> <description>Jeff,I&#039;m a newbie to all this and just want to thank you for these tuts. I&#039;m not so terrified of php now. Thanks!</description> <content:encoded><![CDATA[<p>Jeff,</p><p>I&#8217;m a newbie to all this and just want to thank you for these tuts. I&#8217;m not so terrified of php now. Thanks!</p> ]]></content:encoded> </item> <item><title>By: Shane Sponagle</title><link>http://blog.themeforest.net/screencasts/diving-into-php-day-8/comment-page-1/#comment-5609</link> <dc:creator>Shane Sponagle</dc:creator> <pubDate>Mon, 16 Feb 2009 13:19:15 +0000</pubDate> <guid
isPermaLink="false">http://blog.themeforest.net/?p=1349#comment-5609</guid> <description>@pix you are setting one var $str but are echoing another $myString.
Try echo $str;</description> <content:encoded><![CDATA[<p>@pix you are setting one var $str but are echoing another $myString.<br
/> Try echo $str;</p> ]]></content:encoded> </item> </channel> </rss>
<!-- This site's performance optimized by W3 Total Cache. Dramatically improve the speed and reliability of your blog!

Learn more about our WordPress Plugins: http://www.w3-edge.com/wordpress-plugins/

Minified using memcached
Page Caching using apc (user agent is rejected)
Database Caching using memcached

Served from: 68.169.41.217.static.vps.net @ 2010-03-13 15:36:39 -->