I saw some problems in the source code of CI a few days ago. Code Segment 1: {code ...} code snippet 2: {code ...} these two points read the document, but it seems that the reference to pass the value of this knowledge point is poor online information, so you can only shamelessly ask for advice... Thanks for reading the source code of CI a few days ago.
Code Segment 1:
Write_log ($ level, $ message);?>
Code Segment 2:
These two points read the document, but it seems that the reference to pass the value of this knowledge point is poor online information, so you can only shamelessly ask for advice...
Thank you!
Reply content:
I saw some problems with the source code of CI a few days ago.
Code Segment 1:
Write_log ($ level, $ message);?>
Code Segment 2:
These two points read the document, but it seems that the reference to pass the value of this knowledge point is poor online information, so you can only shamelessly ask for advice...
Thank you!
call_user_func_array(array(&$CI, $method), $params);
This does not mean to pass in CI, but to call the $ method of $ CI with the $ pararms Parameter
For example:
$method = 'something';$params = array('a', 'b', 'c');
It is equivalent to calling
$CI->something('a', 'b', 'c');
Http://php.net/manual/zh/function.call-user-func-array.php