There are two popular approaches to get the first element in an array. We will discuss the pros and cons of both in this article.
Setting cookies is generally done using setcookie(), that’s a known fact. However, unsetting them generally is a bit trickier, since the cookie remains available throughout the current request, if requested via the global variable: $_COOKIE[‘the_cookie_name’] The cookie is fully removed/expired on
PHPAcademy provided this wonderful 2-part tutorial on how to code a short function to check if a given website is online or down currently. Similar functionality can be seen at isup.me.