<?php
class tempClass {
function someFunction() {
$tempArray = array('functionName' => 'tempFunction');
call_user_func(array($this, $tempArray['functionName']));
}
function tempFunction() {
echo "inside function";
}
}
$a = new tempClass();
$a->someFunction();
?>