tubeshowcase●1,194,391 videos♡ My collection 0
← Learn to Code

Learn to Code05:34

PHP $_COOKIE explained

Bro Code ↗

From the creator

#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"; }

Published 2024-05-20 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code