if(comparison()) // Логика скролла
function comparison() {
// Логика сравнения
// Возвращайте bool
}
composer require funkjedi/composer-include-files
"extra": {
"include_files": [
"app/Http/helpers.php"
]
},
composer dump-autoload
<input type="text" min="<?=$option['min'];?>"
onkeypress='return event.charCode >= 48 && event.charCode <= 57'
onblur="correct(this)">
$regExp = '#(' . $tag1 . '|' . $tag2 . '|' . $tag3 . ')#';
if(preg_matchAll($regExp, $string, $matches) { // $matches содержит все найденные тэги
if(count($matches) == 3) save();
}
if(!preg_match($regExp, $string)) unset() // ! - чтобы удалить то что не находит
if(preg_match($regExp, $string, $match)) // $match - содержит найденный результат
$regExp = $tag . '=white'; // Вместо white используйте ваши обозначения