<?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"
	>
<channel>
	<title>Comments on: PHP: Is SimpleXML Loaded?</title>
	<atom:link href="http://www.douglaskarr.com/2007/06/03/simplexml-function/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.marketingtechblog.com/2007/06/03/simplexml-function/</link>
	<description>new media strategies and other marketing gems</description>
	<pubDate>Tue, 07 Oct 2008 04:33:42 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Douglas Karr</title>
		<link>http://www.marketingtechblog.com/2007/06/03/simplexml-function/#comment-47137</link>
		<dc:creator>Douglas Karr</dc:creator>
		<pubDate>Mon, 04 Jun 2007 13:21:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.douglaskarr.com/2007/06/03/simplexml-function/#comment-47137</guid>
		<description>Get that donut button up, Nick!  You're a livesaver! What's funny is that (minus the strtolower), I actually did have my sample code running and utilizing the right evaluation.  It must have been late because by the time I put it in, I messed it up!

I've modified the code and the blog post.  Question: Any advantage of one over the other?  I guess the extension_loaded is a much cleaner and quicker way of dealing with this!

Thanks Nick!</description>
		<content:encoded><![CDATA[<div class="KonaBody">Get that donut button up, Nick!  You&#8217;re a livesaver! What&#8217;s funny is that (minus the strtolower), I actually did have my sample code running and utilizing the right evaluation.  It must have been late because by the time I put it in, I messed it up!</p>
<p>I&#8217;ve modified the code and the blog post.  Question: Any advantage of one over the other?  I guess the extension_loaded is a much cleaner and quicker way of dealing with this!</p>
<p>Thanks Nick!</p></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick Halstead</title>
		<link>http://www.marketingtechblog.com/2007/06/03/simplexml-function/#comment-47110</link>
		<dc:creator>Nick Halstead</dc:creator>
		<pubDate>Mon, 04 Jun 2007 06:30:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.douglaskarr.com/2007/06/03/simplexml-function/#comment-47110</guid>
		<description>Hi Doug,

I did notice a one bug which probably doesn't raise an error.

if ($value = "SimpleXML") { $result = true; }

should be

if ($value == "SimpleXML") { $result = true; }

Although for safety sake. I prefer. 

if (strtolower($value) == "simplexml") { $result = true; }

You could also use 'extension_loaded' which takes the extension name to check (case sensitive).

$loaded = extension_loaded("SimpleXML");

Returns TRUE or FALSE. 

P.S.  Don't drink coffee myself but I may put a 'buy me a box of donuts' button :)</description>
		<content:encoded><![CDATA[<div class="KonaBody">Hi Doug,</p>
<p>I did notice a one bug which probably doesn&#8217;t raise an error.</p>
<p>if ($value = &#8220;SimpleXML&#8221;) { $result = true; }</p>
<p>should be</p>
<p>if ($value == &#8220;SimpleXML&#8221;) { $result = true; }</p>
<p>Although for safety sake. I prefer. </p>
<p>if (strtolower($value) == &#8220;simplexml&#8221;) { $result = true; }</p>
<p>You could also use &#8216;extension_loaded&#8217; which takes the extension name to check (case sensitive).</p>
<p>$loaded = extension_loaded(&#8221;SimpleXML&#8221;);</p>
<p>Returns TRUE or FALSE. </p>
<p>P.S.  Don&#8217;t drink coffee myself but I may put a &#8216;buy me a box of donuts&#8217; button <img src='http://www.marketingtechblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </div>
]]></content:encoded>
	</item>
</channel>
</rss>
