I\'m passing some post data to execute a function based on post data, to determine if this should execute I\'ve tried to use the following:
$SP = new StoredP
You should use method_exists
Try with:
if(method_exists($SP, $_POST['function'])) {