<?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>Slightlymore &#187; Frequently googled questions</title>
	<atom:link href="http://slightlymore.co.uk/tag/fgq/feed/" rel="self" type="application/rss+xml" />
	<link>http://slightlymore.co.uk</link>
	<description>The online residence of Clinton the intertube sorcerer</description>
	<lastBuildDate>Sat, 24 Jul 2010 17:11:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0-RC2-15161</generator>
		<item>
		<title>What does the += operator do?</title>
		<link>http://slightlymore.co.uk/plus-equals-operator/</link>
		<comments>http://slightlymore.co.uk/plus-equals-operator/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 18:40:27 +0000</pubDate>
		<dc:creator>Clinton Montague</dc:creator>
				<category><![CDATA[Frequently googled questions]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://slightlymore.co.uk/?p=688</guid>
		<description><![CDATA[It sets the value on the left to be itself plus the value on the right (for example, <code>i+=3</code> is the same as <code>i = i+3</code>). It's called the <em>addition-assignment operator</em>.]]></description>
			<content:encoded><![CDATA[<p>The <code>+=</code> operator is a simplified way of writing I want to increase the variable by a certain value. It&#8217;s called the <em>addition-assignment operator</em>.</p>
<h4>Examples</h4>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$i</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">10</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$i</span><span style="color: #339933;">+=</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$i</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// outputs 11;</span>
&nbsp;
<span style="color: #000088;">$i</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">10</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$i</span><span style="color: #339933;">+=</span><span style="color: #cc66cc;">5</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$i</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// outputs 15</span>
&nbsp;
<span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">10</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$i</span><span style="color: #339933;">+=</span> <span style="color: #339933;">-</span><span style="color: #cc66cc;">10</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$i</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// output 0 (since 10 + (-10) is the same as 10-10);</span>
&nbsp;
<span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">10</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$i</span><span style="color: #339933;">+=</span><span style="color: #000088;">$i</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$i</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// output 20;</span></pre></td></tr></table></div>

<h4>Find out more</h4>
<ul>
<li><a href="http://msdn.microsoft.com/en-us/library/w2xk8y0c(VS.85).aspx">MSDN page about the addition assignment for JScript</a></li>
<li><a href="http://www.google.co.uk/search?q=addition-assignment&#038;hl=en&#038;client=firefox-a&#038;rls=org.mozilla:en-US:official&#038;hs=GKc&#038;start=10&#038;sa=N">Google search for &#8220;addition-assignment&#8221;</a></li>
<li>A post by me: <a href="http://slightlymore.co.uk/wisdom/operator-precedence-what-does-i1i-ii-3i-i-equal-and-why">Operator precedence &#8211; what does <code>(i=1)*i-- - --i*(i=-3)*i++ + ++i</code> equal and why?</a> (not for beginners)</li>
<li>A similar <acronym title="Frequently Googled question">FQG</acronym> &#8211; <a href="http://slightlymore.co.uk/wisdom/minus-equals-operator">What does the -= operator do?</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://slightlymore.co.uk/plus-equals-operator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Frequently googled questions</title>
		<link>http://slightlymore.co.uk/frequently-googled-questions/</link>
		<comments>http://slightlymore.co.uk/frequently-googled-questions/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 20:15:17 +0000</pubDate>
		<dc:creator>Clinton Montague</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Google / SEO]]></category>
		<category><![CDATA[Frequently googled questions]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[search engine]]></category>
		<category><![CDATA[searches]]></category>

		<guid isPermaLink="false">http://slightlymore.co.uk/?p=567</guid>
		<description><![CDATA[An introduction to a new series of posts which I will be running relatively frequently answering some of the more obscure google search terms which cause people to land on slightlymore. The posts won't appear in the normal blog section, they'll just appear in the fgq section.]]></description>
			<content:encoded><![CDATA[<p>Have you ever wanted to search for something but don&#8217;t know or can&#8217;t remember the right words to really narrow it down? Frustrated when you type &#8216;flash z-index&#8217; into google but can&#8217;t find the answer anywhere because you didn&#8217;t know you were looking for &#8216;wmode&#8217;? Or desperately trying to find out if jQuery will work with Javascript turned off?</p>
<p>They all sound like stupid questions if you know what the answer is, but all questions do, don&#8217;t they? I have decided to start a series of quick posts answering some of the more obscure search terms that cause people to arrive at this site. Hopefully you might even find some of them useful. </p>
<p>The posts won&#8217;t get in the way of normal blog posts, they&#8217;ll be exclusively posted in the fgq section, but they&#8217;ll still appear in the <a href="http://feeds.slightlymore.co.uk/Slightlymore">feed</a> so remember subscribe to that to keep up to date. </p>
<p><a href="/fgqs" class="read_more">Take me to the new FGQ section!</a></p>
]]></content:encoded>
			<wfw:commentRss>http://slightlymore.co.uk/frequently-googled-questions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
