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.

read more


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -