<?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>Web Development London UK &#187; Interesting</title>
	<atom:link href="http://hsmoore.com/blog/tag/interesting/feed/" rel="self" type="application/rss+xml" />
	<link>http://hsmoore.com</link>
	<description>Web Development London UK</description>
	<lastBuildDate>Wed, 01 Feb 2012 12:10:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>shortText function toggler in php</title>
		<link>http://hsmoore.com/blog/shorttext-function-toggler-in-php/</link>
		<comments>http://hsmoore.com/blog/shorttext-function-toggler-in-php/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 13:49:33 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[Interesting]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://blog.andrewodendaal.com/332/shorttext-function-toggler-in-php/</guid>
		<description><![CDATA[I often have to show a shortened version of a news item and then a link to show the entire news article or whatever. Here&#8217;s a way to get that short text! function shortText&#40;$text, $length&#41; &#123; &#160; &#160; &#160; &#160; if&#40; strlen&#40;$text&#41; &#62; $length &#41; return substr&#40;preg_replace&#40;&#34;/(&#60;\/?)(\w+)([^&#62;]*&#62;)/&#34;, &#34;&#34;, $text&#41;, 0, $length&#41;.&#34;…&#34;; &#160; &#160; &#160; &#160;...]]></description>
			<content:encoded><![CDATA[<p>I often have to show a shortened version of a news item and then a link to show the entire news article or whatever.</p>
<p>Here&#8217;s a way to get that short text!</p>
<div class="codesnip-container" >
<div class="php codesnip" style="font-family:monospace;"><span class="kw2">function</span> shortText<span class="br0">&#40;</span><span class="re0">$text</span><span class="sy0">,</span> <span class="re0">$length</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span><span class="br0">&#40;</span> <a href="http://www.php.net/strlen"><span class="kw3">strlen</span></a><span class="br0">&#40;</span><span class="re0">$text</span><span class="br0">&#41;</span> <span class="sy0">&gt;</span> <span class="re0">$length</span> <span class="br0">&#41;</span> <span class="kw1">return</span> <a href="http://www.php.net/substr"><span class="kw3">substr</span></a><span class="br0">&#40;</span><a href="http://www.php.net/preg_replace"><span class="kw3">preg_replace</span></a><span class="br0">&#40;</span><span class="st0">&quot;/(&lt;\/?)(\w+)([^&gt;]*&gt;)/&quot;</span><span class="sy0">,</span> <span class="st0">&quot;&quot;</span><span class="sy0">,</span> <span class="re0">$text</span><span class="br0">&#41;</span><span class="sy0">,</span> 0<span class="sy0">,</span> <span class="re0">$length</span><span class="br0">&#41;</span><span class="sy0">.</span><span class="st0">&quot;…&quot;</span><span class="sy0">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">return</span> <a href="http://www.php.net/preg_replace"><span class="kw3">preg_replace</span></a><span class="br0">&#40;</span><span class="st0">&quot;/(&lt;\/?)(\w+)([^&gt;]*&gt;)/&quot;</span><span class="sy0">,</span> <span class="st0">&quot;&quot;</span><span class="sy0">,</span> <span class="re0">$text</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
<span class="br0">&#125;</span></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://hsmoore.com/blog/shorttext-function-toggler-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>1 December 2009</title>
		<link>http://hsmoore.com/blog/1-december-2009/</link>
		<comments>http://hsmoore.com/blog/1-december-2009/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 15:54:53 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Interesting]]></category>
		<category><![CDATA[Coming Out]]></category>
		<category><![CDATA[December]]></category>
		<category><![CDATA[Personal Stories]]></category>

		<guid isPermaLink="false">http://blog.andrewodendaal.com/?p=249</guid>
		<description><![CDATA[The first of December and it only feels like it&#8217;s February! This year has really flown by quicker than the last! I&#8217;m quite excited that it is already December, as there are a lot of really interesting things that are coming my/your way over the course of the next few months &#8211; but you will...]]></description>
			<content:encoded><![CDATA[<p>The first of December and it only feels like it&#8217;s February!<br />
This year has really flown by quicker than the last!</p>
<p>I&#8217;m quite excited that it is already December, as there are a lot of really interesting things that are coming my/your way over the course of the next few months &#8211; but you will have to stay tuned for what I have instore for you all!</p>
<p>Looking for a webmaster to manage/maintain your website, go to <a title="Opens in New Tab/Window" href="http://www.andrewodendaal.com/" target="_blank">Andrew Odendaal&#8217;s Online Webmaster Portfolio</a> now to get in touch!</p>
<p>Go to <a title="Opens in New Tab/Window" href="http://devapi.net" target="_blank">devapi.net</a> and signup for a FREE account today while the gates are still open!</p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" href="http://reblog.zemanta.com/zemified/fe1ea96e-a04c-4f5d-9fc9-a585a0688944/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/reblog_e.png?x-id=fe1ea96e-a04c-4f5d-9fc9-a585a0688944" alt="Reblog this post [with Zemanta]" /></a><span class="zem-script more-related more-info pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://hsmoore.com/blog/1-december-2009/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adidas</title>
		<link>http://hsmoore.com/blog/adidas/</link>
		<comments>http://hsmoore.com/blog/adidas/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 15:40:50 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Interesting]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[adidas]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[random]]></category>

		<guid isPermaLink="false">http://blog.andrewodendaal.com/?p=247</guid>
		<description><![CDATA[I came across this site today: http://www.adidas.com/campaigns/adidasdfb/content/locale/com/?strcountry_adidascom=uk It is a game made and run on the adidas site.. Play it, it&#8217;s quite cool. Nice flash site to whoever made it!]]></description>
			<content:encoded><![CDATA[<p>I came across this site today:<a title="Opens in New Tab/Window" href="http://www.adidas.com/campaigns/adidasdfb/content/locale/com/?strcountry_adidascom=uk" target="_blank"> http://www.adidas.com/campaigns/adidasdfb/content/locale/com/?strcountry_adidascom=uk</a></p>
<p>It is a game made and run on the adidas site..</p>
<p>Play it, it&#8217;s quite cool. Nice flash site to whoever made it!</p>
]]></content:encoded>
			<wfw:commentRss>http://hsmoore.com/blog/adidas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

