<?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 Find Variable in String</title>
	<atom:link href="http://www.twistermc.com/blog/2005/10/27/php-find-variable-in-string/feed" rel="self" type="application/rss+xml" />
	<link>http://www.twistermc.com/blog/2005/10/27/php-find-variable-in-string</link>
	<description>Like a Themepark of random information.</description>
	<pubDate>Tue, 07 Oct 2008 23:03:35 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Pat</title>
		<link>http://www.twistermc.com/blog/2005/10/27/php-find-variable-in-string#comment-299521</link>
		<dc:creator>Pat</dc:creator>
		<pubDate>Thu, 25 Sep 2008 16:01:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.twistermc.com/blog/?p=675#comment-299521</guid>
		<description>Looks like I'm going to have to buy this guy a beer.</description>
		<content:encoded><![CDATA[<p>Looks like I&#8217;m going to have to buy this guy a beer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Althauser</title>
		<link>http://www.twistermc.com/blog/2005/10/27/php-find-variable-in-string#comment-270145</link>
		<dc:creator>Ben Althauser</dc:creator>
		<pubDate>Thu, 15 May 2008 09:18:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.twistermc.com/blog/?p=675#comment-270145</guid>
		<description>nice. :)  Thanx.</description>
		<content:encoded><![CDATA[<p>nice. <img src='http://www.twistermc.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Thanx.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: darklord</title>
		<link>http://www.twistermc.com/blog/2005/10/27/php-find-variable-in-string#comment-269982</link>
		<dc:creator>darklord</dc:creator>
		<pubDate>Wed, 14 May 2008 17:46:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.twistermc.com/blog/?p=675#comment-269982</guid>
		<description>it's cool but it can result only one.
what can i do to get all find results. 
for example in
 "hello. i am a php developer. i am darklord"
when i serach 
"i am"
there are 2 in this paragraph.</description>
		<content:encoded><![CDATA[<p>it&#8217;s cool but it can result only one.<br />
what can i do to get all find results.<br />
for example in<br />
 &#8220;hello. i am a php developer. i am darklord&#8221;<br />
when i serach<br />
&#8220;i am&#8221;<br />
there are 2 in this paragraph.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.twistermc.com/blog/2005/10/27/php-find-variable-in-string#comment-223684</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Tue, 08 Jan 2008 20:44:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.twistermc.com/blog/?p=675#comment-223684</guid>
		<description>You, are, Legend.

Exactly the last piece to my puzzle!

Was struggling to write a "if .co.uk is in string then.." statement.</description>
		<content:encoded><![CDATA[<p>You, are, Legend.</p>
<p>Exactly the last piece to my puzzle!</p>
<p>Was struggling to write a &#8220;if .co.uk is in string then..&#8221; statement.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg</title>
		<link>http://www.twistermc.com/blog/2005/10/27/php-find-variable-in-string#comment-210584</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Wed, 12 Dec 2007 00:16:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.twistermc.com/blog/?p=675#comment-210584</guid>
		<description>Thank you, I searched all over for this</description>
		<content:encoded><![CDATA[<p>Thank you, I searched all over for this</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sumsumin</title>
		<link>http://www.twistermc.com/blog/2005/10/27/php-find-variable-in-string#comment-208604</link>
		<dc:creator>sumsumin</dc:creator>
		<pubDate>Sat, 08 Dec 2007 19:14:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.twistermc.com/blog/?p=675#comment-208604</guid>
		<description>THANKS! I really needed this! YOU ROCK!</description>
		<content:encoded><![CDATA[<p>THANKS! I really needed this! YOU ROCK!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ontengen</title>
		<link>http://www.twistermc.com/blog/2005/10/27/php-find-variable-in-string#comment-178420</link>
		<dc:creator>ontengen</dc:creator>
		<pubDate>Tue, 30 Oct 2007 00:57:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.twistermc.com/blog/?p=675#comment-178420</guid>
		<description>$haystack="Hi jane, you look great.";
$needle="jaNe";

if (stristr($haystack,$needle)){
    print "Yup! i found it.";
} 
else{
    print "Nope, i don't see it.";
}</description>
		<content:encoded><![CDATA[<p>$haystack=&#8221;Hi jane, you look great.&#8221;;<br />
$needle=&#8221;jaNe&#8221;;</p>
<p>if (stristr($haystack,$needle)){<br />
    print &#8220;Yup! i found it.&#8221;;<br />
}<br />
else{<br />
    print &#8220;Nope, i don&#8217;t see it.&#8221;;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ontengen</title>
		<link>http://www.twistermc.com/blog/2005/10/27/php-find-variable-in-string#comment-178419</link>
		<dc:creator>ontengen</dc:creator>
		<pubDate>Tue, 30 Oct 2007 00:55:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.twistermc.com/blog/?p=675#comment-178419</guid>
		<description>... and for insensitive search like Jane, jaNE, or JANE

</description>
		<content:encoded><![CDATA[<p>&#8230; and for insensitive search like Jane, jaNE, or JANE</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas</title>
		<link>http://www.twistermc.com/blog/2005/10/27/php-find-variable-in-string#comment-158297</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Thu, 30 Aug 2007 01:06:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.twistermc.com/blog/?p=675#comment-158297</guid>
		<description>douche - That's exactly why I posted it. :)</description>
		<content:encoded><![CDATA[<p>douche - That&#8217;s exactly why I posted it. <img src='http://www.twistermc.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: douche</title>
		<link>http://www.twistermc.com/blog/2005/10/27/php-find-variable-in-string#comment-157204</link>
		<dc:creator>douche</dc:creator>
		<pubDate>Mon, 27 Aug 2007 16:36:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.twistermc.com/blog/?p=675#comment-157204</guid>
		<description>damn cant belive i always forget this one!</description>
		<content:encoded><![CDATA[<p>damn cant belive i always forget this one!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: me</title>
		<link>http://www.twistermc.com/blog/2005/10/27/php-find-variable-in-string#comment-153496</link>
		<dc:creator>me</dc:creator>
		<pubDate>Sun, 19 Aug 2007 22:01:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.twistermc.com/blog/?p=675#comment-153496</guid>
		<description>yeah, I don't know why PHP net always has the complicated jibba jabba when dummies like myself use that site as well.  I searched high and low for about ten minutes just now until you solved my problem in laymens terms.  Thanks!</description>
		<content:encoded><![CDATA[<p>yeah, I don&#8217;t know why PHP net always has the complicated jibba jabba when dummies like myself use that site as well.  I searched high and low for about ten minutes just now until you solved my problem in laymens terms.  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.twistermc.com/blog/2005/10/27/php-find-variable-in-string#comment-33783</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Mon, 11 Sep 2006 03:23:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.twistermc.com/blog/?p=675#comment-33783</guid>
		<description>Thank you, thank you, thank you!</description>
		<content:encoded><![CDATA[<p>Thank you, thank you, thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vinit</title>
		<link>http://www.twistermc.com/blog/2005/10/27/php-find-variable-in-string#comment-27525</link>
		<dc:creator>Vinit</dc:creator>
		<pubDate>Tue, 08 Aug 2006 22:35:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.twistermc.com/blog/?p=675#comment-27525</guid>
		<description>Thanks !
This is exactly what i am looking for :)
Vinit</description>
		<content:encoded><![CDATA[<p>Thanks !<br />
This is exactly what i am looking for <img src='http://www.twistermc.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Vinit</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anurag Tarar</title>
		<link>http://www.twistermc.com/blog/2005/10/27/php-find-variable-in-string#comment-12302</link>
		<dc:creator>Anurag Tarar</dc:creator>
		<pubDate>Thu, 12 Jan 2006 08:52:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.twistermc.com/blog/?p=675#comment-12302</guid>
		<description>Hi,

I have used the original method since it allows me to execute certain code based upon found or not found criteria. This article was very helpfull to me.

Thanks</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have used the original method since it allows me to execute certain code based upon found or not found criteria. This article was very helpfull to me.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: collideous</title>
		<link>http://www.twistermc.com/blog/2005/10/27/php-find-variable-in-string#comment-11719</link>
		<dc:creator>collideous</dc:creator>
		<pubDate>Tue, 01 Nov 2005 15:27:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.twistermc.com/blog/?p=675#comment-11719</guid>
		<description>Here's another way to get the same result:

$string = "PHP";
$container = "I love writing PHP code.";

echo (strstr($container,$string)?"found it.":"not found.");</description>
		<content:encoded><![CDATA[<p>Here&#8217;s another way to get the same result:</p>
<p>$string = &#8220;PHP&#8221;;<br />
$container = &#8220;I love writing PHP code.&#8221;;</p>
<p>echo (strstr($container,$string)?&#8221;found it.&#8221;:&#8221;not found.&#8221;);</p>
]]></content:encoded>
	</item>
</channel>
</rss>
