apache - Is there a way to define global or standard function in php that can be called from anywhere without including the file -


Many times, I have to use the code in order to clearly see output:

  $ one = print_r ($, true); Echo "& lt; east> $ a 
;";

This piece of code can convert a global function (for example: echopre ) to PHP so that I can change the value of the echopre ($ data) Can I use anywhere in my php program (in my server)?

Thank you,

If you are a server administrator, you write custom php extensions And can add some functions to php. For example I wrote the ar_view function, which is the nickname of print_r with the format of HTML:


Comments