Naming Keys in Arrays makes it easier to verify you are interacting with the appropriate data in an array.
The pathinfo() function allows you to turn a filepath into an Array and then interact with the keys of the Array. You can grab the Filename, Extension, Folder Name and Basename. pathinfo() https://www.php.net/manual/en/function.pathinfo.php https://www.w3schools.com/php/func_filesystem_pathinfo.asp pathinfo.php
If Else Statements allow for code to run if a condition is true, but have different code run of a condition is false. <?php $age = 15; print “Your Age is $age”; print “<br>”; […]
The isset() function in PHP checks to see if the value of a variable has been set. this can be useful in applications that allow users to login, or make sure that variables are actually […]