Function __global->clean_php_file_for_eval

Definitions

sources/bootstrap.php

  • Make a PHP file evaluable.This function is used across the entire software, not just in bootstrap.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$c string No No required parameter N/A N/A File contents
$path ?string No No Null N/A N/A File path (null: N/A)

Returns

  • Cleaned up file
  • Type: string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Make a PHP file evaluable.This function is used across the entire software, not just in bootstrap.
 *
 * @param  string $c File contents
 * @param  ?string $path File path (null: N/A)
 * @return string Cleaned up file
 */

function clean_php_file_for_eval(string $c, ?string $path = null) : string