I arrived in a situation that gave a somewhat confusing result here ..
I have a .php file in which I have a class called main
, if I install this class main
- > $main = new main
the array $ _POST that was previously with some variables is empty, but if I change the class name to main*
, that is, maind
, mainc
, or any other name .. $_POST
is not reset, or if I read the variables before instantiating the main class, but after it is empty.
What is happening when I install the main class? am I overwriting some class that interferes with $_POST
?
Note: the main class I created, I named this name because it does not have to be specific.