6
So I was studying about POO and MVC structures with PHP and saw that we often need to use global variables (accessible throughout the application) and what’s the difference of using:
global $nome = 'Joao';
define(NOME,'Joao');
const NOME = 'Joao';
Thank you very much friend, it helped a lot.
– Gabriel Almeida