note 88161 deleted from arrayiterator.valid by danbrown
| From: | danbrown@php.net | Date: | Wed, 14 Jan 2009 01:07:08 +0000 |
| Subject: | note 88161 deleted from arrayiterator.valid by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-149166@lists.php.net to get a copy of this message | ||
Note Submitter: jon at springyweb dot com
----
@kaigillmann
Don't do this:
<?php
public function available($value) {
if (in_array($value, (array)$this))
return true;
else
return false;
}
?>
Just do this:
<?php
public function available($value) {
return in_array($value, (array)$this);
}
?>