Codeigniter-questions about passing values through php reference

Source: Internet
Author: User
Tags codeigniter
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.