use php functions as function argument -
can call php function in custom function argument.
example
function customfunction(trim($args),addslashes($args_second)) { //other code }
that gave parse error: syntax error, unexpected '(', expecting '&' or t_variable
error. correct way.?
i know can inside function why can not way.?
what trying impossible php.
information may passed functions via argument list, comma-delimited list of expressions. arguments evaluated left right.
php supports passing arguments value (the default), passing reference, , default argument values. variable-length argument lists supported.
Comments
Post a Comment