Home >Backend Development >PHP Tutorial >Summary of usage of php's eval function
output: This is a $string $time morning! This is a beautiful morning winter! Theeval() function is also used in the CodeIgniter framework. In the /system/database/DB.php file, a class CI_DB is dynamically defined according to the system configuration. The specific code snippet:
This function can substitute the variable value in the string and is usually used to process database data. The parameter code_str is the string to be processed. Note: The string to be processed must conform to PHP's string format and must have a semicolon at the end. The string processed using this function will be continued until the end of the PHP program. |