<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: The basics of singletons in PHP4 &#038; 5</title>
	<link>http://www.w3style.co.uk/the-basics-of-singletons-in-php4-5</link>
	<description>Chris Corbyn, WebGeek</description>
	<pubDate>Tue, 02 Dec 2008 12:16:23 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2</generator>

	<item>
		<title>By: Stephen</title>
		<link>http://www.w3style.co.uk/the-basics-of-singletons-in-php4-5#comment-1680</link>
		<author>Stephen</author>
		<pubDate>Wed, 03 Oct 2007 11:20:30 +0000</pubDate>
		<guid>http://www.w3style.co.uk/the-basics-of-singletons-in-php4-5#comment-1680</guid>
		<description>I tend to use the syntax:
&lt;code&gt;
self::$instance = new self();
&lt;/code&gt;
instead of
&lt;code&gt;
self::$instance = new singleton();
&lt;/code&gt;

That way the class doesn't really care what it's called. One less chance of a typo!

Enjoying the examples

S</description>
		<content:encoded><![CDATA[<p>I tend to use the syntax:</p>
<div class="codesnip-container" >self::$instance = new self();</div>
<p>instead of</p>
<div class="codesnip-container" >self::$instance = new singleton();</div>
<p>That way the class doesn&#8217;t really care what it&#8217;s called. One less chance of a typo!</p>
<p>Enjoying the examples</p>
<p>S</p>
]]></content:encoded>
	</item>
</channel>
</rss>
