<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Tue, 09 Jun 2026 21:24:20 +0000</lastBuildDate>
    <item>
      <title>(PHP) Test if a number is odd or even using bitwise operator - tiaonlab</title>
      <link>https://snipplr.com/view/2431/test-if-a-number-is-odd-or-even-using-bitwise-operator</link>
      <description>&lt;p&gt;In PHP &amp; or AND is a bitwise operator. When used it performs bitwise operation between two numbers. In the following example, the operator will test if the last bit of $number is 1. Thus successfully tests if $number is even or odd.&lt;/p&gt;</description>
      <pubDate>Wed, 04 Apr 2007 09:25:21 UTC</pubDate>
      <guid>https://snipplr.com/view/2431/test-if-a-number-is-odd-or-even-using-bitwise-operator</guid>
    </item>
  </channel>
</rss>
