<?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>Chad Ayers &#187; PHP</title>
	<atom:link href="http://www.chadayers.org/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chadayers.org</link>
	<description></description>
	<lastBuildDate>Mon, 26 Jul 2010 03:57:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Check if a Function exists within a Class [PHP]</title>
		<link>http://www.chadayers.org/check-if-a-function-exists-within-a-class-php/</link>
		<comments>http://www.chadayers.org/check-if-a-function-exists-within-a-class-php/#comments</comments>
		<pubDate>Fri, 04 Jun 2010 20:31:51 +0000</pubDate>
		<dc:creator>Chad Ayers</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Class]]></category>
		<category><![CDATA[Function]]></category>

		<guid isPermaLink="false">http://www.chadayers.org/?p=65</guid>
		<description><![CDATA[The following code returns a bool value of true or false: &#60;? class Books { public function read() { } public function find() { } } $class = new Books(); $function = "find"; $methodVariable = array($class, $function); $function_exists = var_dump(is_callable($methodVariable)); echo $function_exists; ?&#62; Live example of above code.]]></description>
			<content:encoded><![CDATA[<p>The following code returns a bool value of true or false:</p>
<p><code>&lt;?<br />
class Books<br />
{<br />
    public function read()<br />
    {</code><br />
<code>    }</code><br />
<code>    public function find()<br />
    {</code><br />
<code>    }<br />
}</p>
<p>$class = new Books();<br />
$function = "find";<br />
$methodVariable = array($class, $function);<br />
$function_exists = var_dump(is_callable($methodVariable));<br />
echo $function_exists;<br />
?&gt;</code></p>
<p><a href="http://code.chadayers.org/functionExists.php">Live</a> example of above code.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chadayers.org/check-if-a-function-exists-within-a-class-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to create a HTML form with a multiple choice drop down with PHP action</title>
		<link>http://www.chadayers.org/how-to-create-a-html-form-with-a-multiple-choice-drop-down-with-php-action/</link>
		<comments>http://www.chadayers.org/how-to-create-a-html-form-with-a-multiple-choice-drop-down-with-php-action/#comments</comments>
		<pubDate>Wed, 02 Jun 2010 22:43:15 +0000</pubDate>
		<dc:creator>Chad Ayers</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.chadayers.org/?p=58</guid>
		<description><![CDATA[HTML Code: &#60;html&#62; &#60;body&#62; &#60;form action="multiEmail.php" method="post"&#62; &#60;select name="to"&#62; &#60;option value="a@a.com"&#62;a@a.com&#60;/option&#62; &#60;option value="b@b.com"&#62;b@b.com&#60;/option&#62; &#60;option value="c@c.om"&#62;c@c.com&#60;/option&#62; &#60;option value="d@d.com"&#62;d@d.com&#60;/option&#62; &#60;/select&#62; &#60;input name="Submit" type="submit" value="Submit" /&#62; &#60;/form&#62; &#60;/body&#62; &#60;/html&#62; PHP Code: &#60;? $to = $_POST['to']; echo $to; ?&#62; Live example of above code.]]></description>
			<content:encoded><![CDATA[<p>HTML Code:</p>
<p><code>&lt;html&gt;<br />
&lt;body&gt;<br />
&lt;form action="multiEmail.php" method="post"&gt;<br />
&lt;select name="to"&gt;<br />
&lt;option value="a@a.com"&gt;a@a.com&lt;/option&gt;<br />
&lt;option value="b@b.com"&gt;b@b.com&lt;/option&gt;<br />
&lt;option value="c@c.om"&gt;c@c.com&lt;/option&gt;<br />
&lt;option value="d@d.com"&gt;d@d.com&lt;/option&gt;<br />
&lt;/select&gt;<br />
&lt;input name="Submit" type="submit" value="Submit" /&gt;<br />
&lt;/form&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</code></p>
<p>PHP Code:</p>
<p><code>&lt;?<br />
$to = $_POST['to'];<br />
echo $to;<br />
?&gt;</code></p>
<p><a href="http://code.chadayers.org/multiEmail.html">Live</a> example of above code.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chadayers.org/how-to-create-a-html-form-with-a-multiple-choice-drop-down-with-php-action/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to get an upcoming date with a preset start date [PHP]</title>
		<link>http://www.chadayers.org/how-to-get-an-upcoming-date-with-a-preset-start-date-php/</link>
		<comments>http://www.chadayers.org/how-to-get-an-upcoming-date-with-a-preset-start-date-php/#comments</comments>
		<pubDate>Wed, 02 Jun 2010 22:15:43 +0000</pubDate>
		<dc:creator>Chad Ayers</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.chadayers.org/?p=52</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><The following PHP allows you to set a start date and add to it a particular amount of time.  In this example it is 2 weeks.</p>
<p><code>&lt;?<br />
$startDate = "2010-06-02";<br />
$nextDate  = strtotime($startDate. "+2 week");<br />
$format = '%Y-%m-%d';<br />
echo strftime($format,$nextDate);<br />
?&gt;</code></p>
<p><a href="http://code.chadayers.org/nextDate.php">Live</a> example of above code.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chadayers.org/how-to-get-an-upcoming-date-with-a-preset-start-date-php/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
