<?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: Validating ABNs and ACNs in PHP</title>
	<atom:link href="http://www.paulferrett.com/2009/validating-abns-and-acns/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.paulferrett.com/2009/validating-abns-and-acns/</link>
	<description>...coding in (mainly) PHP and MySQL</description>
	<lastBuildDate>Fri, 13 Jan 2012 17:37:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Daniel</title>
		<link>http://www.paulferrett.com/2009/validating-abns-and-acns/comment-page-1/#comment-19</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Tue, 01 Dec 2009 02:14:55 +0000</pubDate>
		<guid isPermaLink="false">http://wp.paulferrett.com/?p=20#comment-19</guid>
		<description>Well done, thank you for posting.</description>
		<content:encoded><![CDATA[<p>Well done, thank you for posting.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: paul</title>
		<link>http://www.paulferrett.com/2009/validating-abns-and-acns/comment-page-1/#comment-4</link>
		<dc:creator>paul</dc:creator>
		<pubDate>Mon, 17 Aug 2009 11:18:53 +0000</pubDate>
		<guid isPermaLink="false">http://wp.paulferrett.com/?p=20#comment-4</guid>
		<description>Hi Mike,

A static class method is called using the :: operator. (see &lt;a href=&quot;http://www.php.net/manual/en/language.oop5.static.php&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/manual/en/language.oop5.static.php&lt;/a&gt;)
&lt;pre lang=&quot;php&quot;&gt;
&lt;?php
if(!Validator::isValidAbnOrAcn($abn)) {
  $error = true;
}
?&gt;
&lt;/pre&gt;

All three functions remove all non numeric characters before testing for validity so it is only the numbers in the string that count. I assume that&#039;s what you&#039;re asking? If there are an incorrect number of numbers in the ABN then it&#039;s not valid and the function will return false.

Paul</description>
		<content:encoded><![CDATA[<p>Hi Mike,</p>
<p>A static class method is called using the :: operator. (see <a href="http://www.php.net/manual/en/language.oop5.static.php" rel="nofollow">http://www.php.net/manual/en/language.oop5.static.php</a>)</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>Validator<span style="color: #339933;">::</span><span style="color: #004000;">isValidAbnOrAcn</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$abn</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #000088;">$error</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>All three functions remove all non numeric characters before testing for validity so it is only the numbers in the string that count. I assume that&#8217;s what you&#8217;re asking? If there are an incorrect number of numbers in the ABN then it&#8217;s not valid and the function will return false.</p>
<p>Paul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.paulferrett.com/2009/validating-abns-and-acns/comment-page-1/#comment-2</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Thu, 13 Aug 2009 07:13:15 +0000</pubDate>
		<guid isPermaLink="false">http://wp.paulferrett.com/?p=20#comment-2</guid>
		<description>Hi, how do you call this code?

I assume something like:

if (! new Validator($abn)) 
		$error = true;

I guess your code also assumes the number is the correct length.</description>
		<content:encoded><![CDATA[<p>Hi, how do you call this code?</p>
<p>I assume something like:</p>
<p>if (! new Validator($abn))<br />
		$error = true;</p>
<p>I guess your code also assumes the number is the correct length.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

