$username = $_POST['username']; $password = $_POST['password'];
$id = $_GET['id'];
session_start(); $_SESSION['username'] = 'JohnDoe';
$cookie_value = $_COOKIE['cookiename'];This code retrieves the value of a cookie named "cookiename". All of the examples above are part of the PHP Core Library and are built-in functions of PHP.