note 29595 rejected from function.array-filter by betz

From: Date: Wed, 19 Feb 2003 11:45:53 +0000
Subject: note 29595 rejected from function.array-filter by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-44195@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; } }

« previous php.notes (#44195) next »