<?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/"
		>
<channel>
	<title>Comments on: Improving Agility with PHP: Storing Multiple (Boolean) Values In a Single Integer</title>
	<atom:link href="http://mediumexposure.com/improving-agility-php-storing-multiple-boolean-values-single-integer/feed/" rel="self" type="application/rss+xml" />
	<link>http://mediumexposure.com/improving-agility-php-storing-multiple-boolean-values-single-integer/</link>
	<description>by Maxim Chernyak</description>
	<lastBuildDate>Fri, 03 Feb 2012 23:30:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: Schell</title>
		<link>http://mediumexposure.com/improving-agility-php-storing-multiple-boolean-values-single-integer/comment-page-1/#comment-40</link>
		<dc:creator>Schell</dc:creator>
		<pubDate>Fri, 31 Oct 2008 19:27:13 +0000</pubDate>
		<guid isPermaLink="false">#comment-40</guid>
		<description>&lt;p&gt;define() takes a string for a name and then a mixed value, so to avoid PHP issuing a notice one should quote or double quote all the names of the defined constants.&lt;/p&gt;

&lt;p&gt;example: 
 define(&quot;SONG1&quot;, 1);&lt;/p&gt;

&lt;p&gt;Thanks a bunch for this post!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>define() takes a string for a name and then a mixed value, so to avoid PHP issuing a notice one should quote or double quote all the names of the defined constants.</p>

<p>example: 
 define(&#8220;SONG1&#8243;, 1);</p>

<p>Thanks a bunch for this post!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: mx_</title>
		<link>http://mediumexposure.com/improving-agility-php-storing-multiple-boolean-values-single-integer/comment-page-1/#comment-164</link>
		<dc:creator>mx_</dc:creator>
		<pubDate>Tue, 16 Oct 2007 14:02:33 +0000</pubDate>
		<guid isPermaLink="false">#comment-164</guid>
		<description>&lt;p&gt;Thanks - I thought something was awkward with that conditional approach, but couldn&#039;t put my finger on it.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<div style=""><p></p><p>Thanks &#8211; I thought something was awkward with that conditional approach, but couldn&#8217;t put my finger on it.</p></div>]]></content:encoded>
	</item>
	<item>
		<title>By: Arnold Daniels</title>
		<link>http://mediumexposure.com/improving-agility-php-storing-multiple-boolean-values-single-integer/comment-page-1/#comment-23</link>
		<dc:creator>Arnold Daniels</dc:creator>
		<pubDate>Wed, 10 Oct 2007 16:29:52 +0000</pubDate>
		<guid isPermaLink="false">#comment-23</guid>
		<description>&lt;p&gt;Never use + and - to add/remove items. Use bit-wise operators instead.&lt;/p&gt;

&lt;?php
// adding Song 4
$checkboxes &#124;= SONG4;  // flagging it

// removing Song 4
$checkboxes &amp;= ~SONG4;

?&gt;
</description>
		<content:encoded><![CDATA[<p>Never use + and &#8211; to add/remove items. Use bit-wise operators instead.</p>

< ?php
// adding Song 4
$checkboxes |= SONG4;  // flagging it

// removing Song 4
$checkboxes &#038;= ~SONG4;

?>]]></content:encoded>
	</item>
</channel>
</rss>

