Not many write PHP code like this anymore, except for perhaps some small one off projects or legacy.
The reason is that it gets incredible hard to maintain, and almost impossible to test.
The reason is that it gets incredible hard to maintain, and almost impossible to test.