<?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: Accessing PHP Class Variables and Functions</title>
	<atom:link href="http://www.victorchen.info/accessing-php-class-variables-and-functions/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.victorchen.info/accessing-php-class-variables-and-functions/</link>
	<description>An array of C#, PHP, and HTML programming articles, tutorials, and resources</description>
	<lastBuildDate>Wed, 28 Jul 2010 13:55:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Fredrik</title>
		<link>http://www.victorchen.info/accessing-php-class-variables-and-functions/comment-page-1/#comment-16993</link>
		<dc:creator>Fredrik</dc:creator>
		<pubDate>Thu, 04 Mar 2010 22:43:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.victorchen.info/?p=154#comment-16993</guid>
		<description>Hi!

Really helpful. But it only got me half way ;) What if I want to call a variable that&#039;s inside one of the functions in the class?

If for example there was a variable called &quot;foo&quot; in the function functionNumberOne() - how could I call and echo that from another page where I&#039;ve called the class and function?

Best
/Fredrik</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>Really helpful. But it only got me half way ;) What if I want to call a variable that&#8217;s inside one of the functions in the class?</p>
<p>If for example there was a variable called &#8220;foo&#8221; in the function functionNumberOne() &#8211; how could I call and echo that from another page where I&#8217;ve called the class and function?</p>
<p>Best<br />
/Fredrik</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Drew Tufano</title>
		<link>http://www.victorchen.info/accessing-php-class-variables-and-functions/comment-page-1/#comment-16975</link>
		<dc:creator>Drew Tufano</dc:creator>
		<pubDate>Wed, 17 Feb 2010 19:44:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.victorchen.info/?p=154#comment-16975</guid>
		<description>Thanks for this Victor! Was having trouble understanding why my new class was throwing a php warning.  Thanks for explaining that &quot;If you&#039;ve specified a constructor, make sure you include the correct number of parameters.&quot;  That was exactly my issue!</description>
		<content:encoded><![CDATA[<p>Thanks for this Victor! Was having trouble understanding why my new class was throwing a php warning.  Thanks for explaining that &#8220;If you&#8217;ve specified a constructor, make sure you include the correct number of parameters.&#8221;  That was exactly my issue!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vinod</title>
		<link>http://www.victorchen.info/accessing-php-class-variables-and-functions/comment-page-1/#comment-16519</link>
		<dc:creator>vinod</dc:creator>
		<pubDate>Sun, 20 Sep 2009 08:07:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.victorchen.info/?p=154#comment-16519</guid>
		<description>The simplest way to understand the class variable................
 class vinod()
   {
 var $color;   // var  key used to define class variable
      function game($col)
       {
      return this -&gt; color = $col; // this -&gt; show the current object and color class               varible remove $ when use;
       }
   }
// calling

$obj = new vinod ;
 $store =$obj -&gt; game(&#039;red&#039;);
echo $store 
//result will be red




}</description>
		<content:encoded><![CDATA[<p>The simplest way to understand the class variable&#8230;&#8230;&#8230;&#8230;&#8230;.<br />
 class vinod()<br />
   {<br />
 var $color;   // var  key used to define class variable<br />
      function game($col)<br />
       {<br />
      return this -&gt; color = $col; // this -&gt; show the current object and color class               varible remove $ when use;<br />
       }<br />
   }<br />
// calling</p>
<p>$obj = new vinod ;<br />
 $store =$obj -&gt; game(&#8216;red&#8217;);<br />
echo $store<br />
//result will be red</p>
<p>}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vinod</title>
		<link>http://www.victorchen.info/accessing-php-class-variables-and-functions/comment-page-1/#comment-16518</link>
		<dc:creator>vinod</dc:creator>
		<pubDate>Sun, 20 Sep 2009 07:01:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.victorchen.info/?p=154#comment-16518</guid>
		<description>this example is help full to me</description>
		<content:encoded><![CDATA[<p>this example is help full to me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Non</title>
		<link>http://www.victorchen.info/accessing-php-class-variables-and-functions/comment-page-1/#comment-16403</link>
		<dc:creator>Non</dc:creator>
		<pubDate>Fri, 14 Aug 2009 18:20:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.victorchen.info/?p=154#comment-16403</guid>
		<description>&quot;Note that the use of classes is a new feature to PHP 5.&quot;

The class &#039;feature&#039; has been around since PHP 4, The implementation of class security was implemented in PHP 5.</description>
		<content:encoded><![CDATA[<p>&#8220;Note that the use of classes is a new feature to PHP 5.&#8221;</p>
<p>The class &#8216;feature&#8217; has been around since PHP 4, The implementation of class security was implemented in PHP 5.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mbusi</title>
		<link>http://www.victorchen.info/accessing-php-class-variables-and-functions/comment-page-1/#comment-4807</link>
		<dc:creator>mbusi</dc:creator>
		<pubDate>Fri, 31 Oct 2008 06:21:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.victorchen.info/?p=154#comment-4807</guid>
		<description>This was very helpful thanx, it was really simple and clear.</description>
		<content:encoded><![CDATA[<p>This was very helpful thanx, it was really simple and clear.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: How to Create PHP Static Method</title>
		<link>http://www.victorchen.info/accessing-php-class-variables-and-functions/comment-page-1/#comment-4759</link>
		<dc:creator>How to Create PHP Static Method</dc:creator>
		<pubDate>Sun, 05 Oct 2008 17:29:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.victorchen.info/?p=154#comment-4759</guid>
		<description>[...] a couple of weeks ago, I covered the basics on how to Access PHP Class Variables and Methods. This article is different because it deals with only the creation of a static method. Before we [...]</description>
		<content:encoded><![CDATA[<p>[...] a couple of weeks ago, I covered the basics on how to Access PHP Class Variables and Methods. This article is different because it deals with only the creation of a static method. Before we [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
