• Hi

    Please replace ‘create_function’ with ‘function’
    example:
    // old, to remove
    $search_terms = array_filter(array_map( create_function( ‘$a’, ‘return trim($a, “\\”\’\\n\\r “);’ ), $matches[0] ));
    // new how it could be …
    $search_terms = array_filter(array_map( function( $a ) { return trim($a, “\”‘\\n\\r “); }, $matches[0] ));

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘create_function removed in PHP 8.0’ is closed to new replies.