<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Get String between Some Strings &#8211; PHP</title>
	<atom:link href="http://pucadinga.com/2008/09/23/get-string-between-some-strings-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://pucadinga.com/2008/09/23/get-string-between-some-strings-php/</link>
	<description>Live it up, life is way too short to be "bored"!</description>
	<lastBuildDate>Thu, 19 Aug 2010 03:24:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: pucadinga</title>
		<link>http://pucadinga.com/2008/09/23/get-string-between-some-strings-php/#comment-14</link>
		<dc:creator>pucadinga</dc:creator>
		<pubDate>Thu, 09 Oct 2008 19:54:48 +0000</pubDate>
		<guid isPermaLink="false">http://pucadinga.wordpress.com/?p=42#comment-14</guid>
		<description>Good idea Nick, in my case above I only needed the first instance, but I like your approach which is a more general implementation.
I am yet to try your code, will let you know how I get on.

If your function works well I will add it to my post :) thanks :)</description>
		<content:encoded><![CDATA[<p>Good idea Nick, in my case above I only needed the first instance, but I like your approach which is a more general implementation.<br />
I am yet to try your code, will let you know how I get on.</p>
<p>If your function works well I will add it to my post <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  thanks <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://pucadinga.com/2008/09/23/get-string-between-some-strings-php/#comment-13</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Thu, 09 Oct 2008 11:07:30 +0000</pubDate>
		<guid isPermaLink="false">http://pucadinga.wordpress.com/?p=42#comment-13</guid>
		<description>********************************

function explode_between($content, $start, $end, $max) {
if ((isset($max)) &amp;&amp; ($max == 0)) {return FALSE;}
if (isset($max)) {$max–- ;}

@$temparray = explode($start,$content,2);
if (count($temparray) &lt; 2) {return FALSE;}
@$temparray = explode($end,$temparray[1],2);
if (count($temparray) &lt; 2) {return FALSE;}

$returned = explode_between($temparray[1], $start, $end, $max);
if ($returned === FALSE) {$outarray = array();}
else {$outarray = $returned;}

array_unshift($outarray,$temparray[0]);
return $outarray;
};</description>
		<content:encoded><![CDATA[<p>********************************</p>
<p>function explode_between($content, $start, $end, $max) {<br />
if ((isset($max)) &amp;&amp; ($max == 0)) {return FALSE;}<br />
if (isset($max)) {$max–- ;}</p>
<p>@$temparray = explode($start,$content,2);<br />
if (count($temparray) &lt; 2) {return FALSE;}<br />
@$temparray = explode($end,$temparray[1],2);<br />
if (count($temparray) &lt; 2) {return FALSE;}</p>
<p>$returned = explode_between($temparray[1], $start, $end, $max);<br />
if ($returned === FALSE) {$outarray = array();}<br />
else {$outarray = $returned;}</p>
<p>array_unshift($outarray,$temparray[0]);<br />
return $outarray;<br />
};</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://pucadinga.com/2008/09/23/get-string-between-some-strings-php/#comment-12</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Thu, 09 Oct 2008 11:05:48 +0000</pubDate>
		<guid isPermaLink="false">http://pucadinga.wordpress.com/?p=42#comment-12</guid>
		<description>How about this re-entrant function:

function explode_between($content, $start, $end, $max) {
if ((isset($max)) &amp;&amp; ($max == 0)) {return FALSE;}
if (isset($max)) {$max-- ;}

@$temparray = explode($start,$content,2);
if (count($temparray) &lt; 2) {return FALSE;}
@$temparray = explode($end,$temparray[1],2);
if (count($temparray) &lt; 2) {return FALSE;}

$returned = explode_between($temparray[1], $start, $end, $max);
if ($returned === FALSE) {$outarray = array();}
else {$outarray = $returned;}

array_unshift($outarray,$temparray[0]);
return $outarray;
}</description>
		<content:encoded><![CDATA[<p>How about this re-entrant function:</p>
<p>function explode_between($content, $start, $end, $max) {<br />
if ((isset($max)) &amp;&amp; ($max == 0)) {return FALSE;}<br />
if (isset($max)) {$max&#8211; ;}</p>
<p>@$temparray = explode($start,$content,2);<br />
if (count($temparray) &lt; 2) {return FALSE;}<br />
@$temparray = explode($end,$temparray[1],2);<br />
if (count($temparray) &lt; 2) {return FALSE;}</p>
<p>$returned = explode_between($temparray[1], $start, $end, $max);<br />
if ($returned === FALSE) {$outarray = array();}<br />
else {$outarray = $returned;}</p>
<p>array_unshift($outarray,$temparray[0]);<br />
return $outarray;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://pucadinga.com/2008/09/23/get-string-between-some-strings-php/#comment-11</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Wed, 08 Oct 2008 16:00:15 +0000</pubDate>
		<guid isPermaLink="false">http://pucadinga.wordpress.com/?p=42#comment-11</guid>
		<description>It would be nice if it returned an array of all the substrings between these start and end delimiters e.g.

$array = getStringsBetween($content,$start,$end,$maxcount)

This would be similar to the format for explode() and could be called explode_between()</description>
		<content:encoded><![CDATA[<p>It would be nice if it returned an array of all the substrings between these start and end delimiters e.g.</p>
<p>$array = getStringsBetween($content,$start,$end,$maxcount)</p>
<p>This would be similar to the format for explode() and could be called explode_between()</p>
]]></content:encoded>
	</item>
</channel>
</rss>
