How can I output the value "123" from a cookie in PHP?
To output the value "123" from a cookie in PHP, you need to first check if the cookie exists and then retrieve its value using the $_COOKIE superglobal. You can then echo out the value to display it on the page.
if(isset($_COOKIE['cookie_name'])) {
$cookie_value = $_COOKIE['cookie_name'];
echo $cookie_value;
}