芝麻web文件管理V1.00
编辑当前文件:/home/r5772835/public_html/blog.ycreate.jp/wp-content/themes/swell/lib/update/Puc/v4p5/Utils.php
$node) ) { $currentValue = $currentValue->$node; } else { return $default; } } return $currentValue; } /** * Get the first array element that is not empty. * * @param array $values * @param mixed|null $default Returns this value if there are no non-empty elements. * @return mixed|null */ public static function findNotEmpty($values, $default = null) { if ( empty($values) ) { return $default; } foreach ($values as $value) { if ( !empty($value) ) { return $value; } } return $default; } /** * Check if the input string starts with the specified prefix. * * @param string $input * @param string $prefix * @return bool */ public static function startsWith($input, $prefix) { $length = strlen($prefix); return (substr($input, 0, $length) === $prefix); } } endif;