参考
https://github.com/letrunghieu/active
composer require hieu-le/active
active_class(true); // 'active'active_class(false); // ''active_class(if_uri([$currentUri]), 'selected'); // 'selected'active_class(if_uri_pattern([$pattern1, $pattern2]), 'active', 'other'); // 'other'
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号