<?php function functionCallback() { $args = func_get_args(); if ($args == ['foo', 'bar']) { return 'pass'; } }
info at phpclasses dot org