<?php $current_time = '4:00'; $time_slot = ['1:00','3:00','15:00','19:00']; var_export( array_filter( $time_slot, fn($v) => strnatcmp($current_time, $v) === -1 ) );
You have javascript disabled. You will not be able to edit any code.