sudhakarinfotech
(current)
Run Code
PHP Code Editor-
PHP Source Code
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>PHP Global Array</title> </head> <body> <h1>PHP Global Array</h1> <?php $username = 'Ankita Maurya'; $job = 'Designer & Developer'; function userInfo(){ echo $GLOBALS['username']."working in the field of ",$GLOBALS['job']; } userInfo(); ?> </body> </html>
Source Code Output