Search:

Type: Posts; User: james438; Keyword(s):

Search: Search took 0.03 seconds.

  1. Resolved Resolved: The purpose was to make sure that...

    Resolved:

    The purpose was to make sure that only images are uploaded, so create_function() or function() are not really needed. In fact, all I really needed was the following code snippet:

    ...
  2. Resolved It appears that I need to make changes to the...

    It appears that I need to make changes to the following lines:


    function file_has_extension($fn, $ext) {
    if(is_array($ext))
    return array_reduce(array_map(create_function('$a', 'return...
  3. Resolved How can I change create_function to anonymous function?

    I am in the lengthy process of modernizing a lot of code on my website to make it php 8.x compliant. I have never really gotten the hang of user defined functions, so the following code was not...
Results 1 to 3 of 3