Loading....
method_exists:
Checks if the class method exists in the given object
.
<?php $directory = new Directory('.'); var_dump(method_exists($directory,'read')); // return bool(true) if function exist ?>func_num_args — Returns the number of arguments passed to the function
<?php function foo() { $numargs = func_num_args(); echo "Number of arguments: $numargs\n"; } foo(1, 2, 3); ?>Output: Number of arguments: 3 Last Update: Posted by: müslüm ÇEN