3.145.186.173 |    

Navigation

Google Advertisement

Die Funktion runPhpCode() führt Code innerhalb einer Funktion aus. Diese Funktion eignet sich besonders als Implementierung in einer Template Klasse.

runPhpCode
  1. /**********************************************
  2.  * This function execute PHP code inside in a
  3.  * function block.
  4.  *
  5.  * @param $input The php code to execute
  6.  * @return string
  7.  */
  8. function runPhpCode( $input = Null ) {
  9.  
  10. ob_start();
  11. eval( $input );
  12. (string) $output = ob_get_contents();
  13. ob_end_clean();
  14. return $output;
  15.  
  16. }
Parsed in 0.008 seconds at 39.53 KB/s

Search
 
Full text search by name and content of a snippet.

User online
There are 4 users online.

Tags Cloud

Latest snippets
str2seconds
(Bash::Function)
is_integer
(Bash::Function)
file_rotate
(Bash::Function)
confirm
(Bash::Function)
is_workingtime
(Bash::Function)
last day of last month
(Bash::Snippets)
crypt_apr1_md5
(PHP::Function)
crypt_apr1_md5
(Perl::Function)
transparent
(CSS)
rfc2822Toiso8601
(PHP::Function)