<?
/*
* String functions
*
* RSS Power Plus Professional v1.11
* Copyright (c) 2008-2009
* Success on the Internet Pty Ltd
* PO Box 25
* Salisbury SA 5108
* Australia
* Phone: +61 422 512 549
* Fax: +61 8 8425 9657
* Web: http://www.rss-power-plus.com
* Support: http://www.marketing-assassins.com
*
*/
function get_string_between_sub($search, $from, $start_pos, &$pos1, &$search1, $case_sensitive)
{
	if ( !is_array($search) ) $search = array($search);

	$pos1_curr    = false;
	$search1_curr = '';
	$pos1         = false;
	$search1      = '';
	foreach( $search as $search1_curr )
	{
		$pos1_curr = call_user_func( $case_sensitive ? 'strpos' : 'stripos', $from, $search1_curr, $start_pos );
		if ( $pos1_curr === false )
		{
			continue;
		}
		else if ( $pos1 === false or $pos1_curr < $pos1 )
		{
			$pos1    = $pos1_curr;
			$search1 = $search1_curr;
		}
	}
}
// If you pass an array to this function in the 2 first arguments,
//  it'll try to find out the minimal position of those 2...
function get_string_between( $s1_arr, $s2_arr, $from, &$start_pos, $case_sensitive = false, $including_outsides = false, $stop_if_not_found = true, $add_search2_length = true )
{
	get_string_between_sub($s1_arr, $from, $start_pos, $pos1, $search1, $case_sensitive);
	get_string_between_sub($s2_arr, $from, $pos1 === false ? $start_pos : $pos1 + strlen($search1), $pos2, $search2, $case_sensitive);

	if ( $pos1 !== false )
	{
		if ( !$including_outsides )
		$pos1 += strlen($search1);
	}
	else if ( $stop_if_not_found )
	{
		$start_pos = strlen($from);
		return '';
	}
	else
	{
		$pos1 = $start_pos;
	}

	if ( $pos2 !== false )
	{
		if ( $add_search2_length )
		$start_pos = $pos2 + strlen($search2);

		if ( $including_outsides )
		$pos2 += strlen($search2);
	}
	else if ( $stop_if_not_found )
	{
		$start_pos = strlen($from);  // top1 r-p-p

		return '';
	}
	else
	{
		$start_pos = strlen($from);

		$pos2 = strlen($from);
	}

	return substr( $from, $pos1, $pos2 - $pos1 );
}

function is_space( $c )
{
	settype($c, 'string');

	return in_array($c{0}, array(" ", "\t", "\r", "\n"));
}<?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:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
		>
<channel>
	<title>Comments on: Things You Need To Know Before You Start Forex Trading</title>
	<atom:link href="http://www.tradingprofitsapex.com/fundamental-analysis/1691/things-you-need-to-know-before-you-start-forex-trading/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tradingprofitsapex.com/fundamental-analysis/1691/things-you-need-to-know-before-you-start-forex-trading/</link>
	<description>Trading Systems, Software and Strategies for Profit</description>
	<lastBuildDate>Sun, 23 Aug 2009 07:09:09 +0000</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	</channel>
</rss>
