<?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>Eat my monkeydust &#187; Web</title>
	<atom:link href="http://eatmymonkeydust.com/category/web/feed/" rel="self" type="application/rss+xml" />
	<link>http://eatmymonkeydust.com</link>
	<description>Life, PHP and Symfony - straight from the monkey's mouth</description>
	<lastBuildDate>Fri, 07 Oct 2011 14:00:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>What makes people click?</title>
		<link>http://eatmymonkeydust.com/2008/12/what-makes-people-click/</link>
		<comments>http://eatmymonkeydust.com/2008/12/what-makes-people-click/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 17:19:35 +0000</pubDate>
		<dc:creator>Russ</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://eatmymonkeydust.com/?p=75</guid>
		<description><![CDATA[Last week I added Google analytics to elephpants.com just to see what kind of a response it would get. The site has no content, other than a lovely picture of Elefina, and as far as I know it&#8217;s only linked from this blog, although I only added that link a couple of days ago. Already [...]]]></description>
			<content:encoded><![CDATA[<p>Last week I added Google analytics to <a href="http://elephpants.com">elephpants.com</a> just to see what kind of a response it would get.</p>
<p>The site has no content, other than a lovely picture of Elefina, and as far as I know it&#8217;s only linked from this blog, although I only added that link a couple of days ago.</p>
<p>Already the site has had hits from Malaysia (Kuala Lumpur), Brazil (Rio de Janeiro), the US (Mountain View, California) and Germany (Bonn).</p>
<p>Google analytics tells me that one person came as a click from this site, and three from Google after a search for &#8220;Elephpants&#8221; &#8211; which kinda makes sense.</p>
<p>If you are responsible for any of those clicks, please do let me know &#8211; as I am intrigued as to what makes people &#8220;click&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://eatmymonkeydust.com/2008/12/what-makes-people-click/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UTF-8 and strlen()</title>
		<link>http://eatmymonkeydust.com/2008/04/utf-8-and-strlen/</link>
		<comments>http://eatmymonkeydust.com/2008/04/utf-8-and-strlen/#comments</comments>
		<pubDate>Tue, 15 Apr 2008 10:14:27 +0000</pubDate>
		<dc:creator>Russ</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Symfony]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Encoding]]></category>
		<category><![CDATA[multibyte]]></category>
		<category><![CDATA[strlen]]></category>
		<category><![CDATA[UTF-8]]></category>

		<guid isPermaLink="false">http://eatmymonkeydust.com/?p=9</guid>
		<description><![CDATA[Trying to find out the length of a string and wondering why the values are often wrong? UTF-8 characters can be multi-byte, and strlen() returns the length of the string in bytes, which means the string ååå would actually have a &#8220;length&#8221; of 6. One solution is to use the multibyte function &#8220;mb_strlen&#8221; instead, you [...]]]></description>
			<content:encoded><![CDATA[<p>Trying to find out the length of a string and wondering why the values are often wrong?</p>
<p>UTF-8 characters can be multi-byte, and strlen() returns the length of the string in bytes, which means the string ååå would actually have a &#8220;length&#8221; of 6.</p>
<p>One solution is to use the multibyte function &#8220;mb_strlen&#8221; instead, you will need to have PHP compiled with this &#8211; but it seems to be a default in later versions.</p>
<p>E.g.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$value</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;ÅØÆbob&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #990000;">strlen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$value</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">// 9</span>
&nbsp;
<span style="color: #b1b100;">echo</span> <span style="color: #990000;">mb_strlen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$value</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'UTF-8'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">// 6</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://eatmymonkeydust.com/2008/04/utf-8-and-strlen/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>

