$_GET
This YouTube video was created by Steve Griffith.
The $_GET
variable is an associative array of variables passed to the current script via the URL parameters or query string.
<?php
//
echo 'Hello, '.$_GET['name'];
?>
Assuming the URL https://example.com?name=World
, the above example will output something similar to:
Hello, World