- array_filter: documentation ( source)
<?php
class Foo
{
static public function run()
{
$a = array(1, 2, 0);
array_filter($a, array('self', 'bar'));
}
static protected function bar()
{
die('Foo::bar called');
}
}
Foo::run();