The full path of the directory to search for PHP files.
Returns
Data Type
Description of Returned Data
array
Returns an array of file paths relative to the website's URL root if PHP files are found in the directory specified by $fullPath, or null if no PHP files are found.
The function searches for PHP files in the specified directory and returns an array of file paths relative to the website's URL root.
The function returns an array of file paths relative to the website's URL root if PHP files are found in the directory specified by $fullPath, or null if no PHP files are found.
Example usage:
Suppose the website's root directory is /var/www/example.com, the URL root is http://example.com, and we want to get an array of PHP files in the directory includes/myphpfiles. We can call the function like this:
If there are two PHP files in the includes/myphpfiles directory, say file1.php and file2.php, then $phpFiles will be an array with the following values: