Related Articles
PHP Programming (NEW)
PHP – Setting Variables
Variables in PHP can be set without needing to be declared. <?php $string = “Hello World”; $int = 1; $float = 2.2; print “<h1>String</h1>”; print $string; print “<h1>Int</h1>”; print $int; print “<h1>Float</h1>”; print $float; […]
*NEW
PHP – Parse Filenames and Paths with pathinfo()
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
PHP Programming (NEW)
PHP – Turn File Into an Array – file()
By turning a file into an array you can work with the data within it as you would a standard array.
Be the first to comment