#PHP #course #tutorial
// cookie = Information about a user stored in a user's web-browser
// targeted advertisements, browsing preferences, and
// other non-sensitive data
setcookie("fav_food", "pizza", time() + (86400 * 2), "/");
setcookie("fav_drink", "coffee", time() + (86400 * 3), "/");
setcookie("fav_dessert", "ice cream", time() + (86400 * 4), "/");
if(isset($_COOKIE["fav_food"])){
echo"BUY SOME {$_COOKIE["fav_food"]} !!!";
}
else{
echo"I don't know your favorite food";
}
Watch video PHP $_COOKIE explained online without registration, duration hours minute second in high quality. This video was added by user Bro Code 19 May 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 8,406 once and liked it 207 people.