PHP The Global Keyword with Examples

PHP The Global Keyword with Examples


You can use Global keyword inside a function to access global variables. Before using variables, add global keyword followed by comma-separated variable names you need to use inside the function.

Global keyword Example :

Output : Hellointernet