Take the following code example:
<?php
class A {
public function aa() {
$output = (array(&$this, 'ab'), $post_id);
return $output;
}
public function ab( $post_id ) {
//do stuff
}
}
?>
What’s the correct way to call method ab that contains additional arguments like $post_id?
I know that the $output line doesn’t work, but that’s the line I’m stuck on.
Thanks.
Just this way: