note 29595 added to function.array-filter
| From: | pkrumins at rack1 dot php dot net | Date: | Tue, 18 Feb 2003 15:25:26 +0000 |
| Subject: | note 29595 added to function.array-filter | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-44161@lists.php.net to get a copy of this message | ||
what about Classes?
class test {
function cback($var) {
return ($var % 2 == 0)
}
function hey() {
$t = Array(1,2,3,4,5,6,7,8,9,10);
$t = array_filter($t,.... how the heck do i refer to $this->cback()?
return $t;
}
}
--
http://www.php.net/manual/en/function.array-filter.php
http://master.php.net/manage/user-notes.php?action=edit+29595
http://master.php.net/manage/user-notes.php?action=delete+29595
http://master.php.net/manage/user-notes.php?action=reject+29595