Skip to content

Instantly share code, notes, and snippets.

Sergey Matvienko spirit-q2

  • Kiev, Ukraine
Block or report user

Report or block spirit-q2

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View process_directory_oop.php
<?php
function processDirectory($start = './', $format = 'array') {
if (!empty($start)) {
$start = rtrim($start, '/') . '/';
}
if (!empty($start) && !is_dir($start)) {
return 'json' === $format ? 'false' : false;
}
You can’t perform that action at this time.