#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, duration hours minute second in high quality that is uploaded to the channel Bro Code 19 May 2024. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 8,406 times and liked it 207 visitors.