Can the function of php be changed by itself?

for example, can the function var_dump, change the implementation of this function itself? Or do you have to write your own extension functions?

Php
Mar.21,2022

can be changed. Find the corresponding source code, modify it, and then install it (that is, configure,make,make install)


there are two functions that can redefine the function, but install the corresponding extension

in fact, it is not recommended to redefine the function. It is easy to affect the code that depends on the modified function. If you want to use special functions, you can implement it yourself or use an external package

.

Yes, change the source code, or you can define a function you want.


are you talking about the function of PHP or the function of framework?
if it is framed, it can be changed.
if it belongs to PHP itself, you may want to learn C

Menu