<?php array_search(mixed $needle, array $haystack, bool $strict = false): int|string|false
<?php protected function injectBootstrapperBefore(string $before, string $inject, array $bootstrappers): array { $injectIndex = array_search($before, $bootstrappers, true); if ($injectIndex !== false) { array_splice($bootstrappers, $injectIndex, 0, [$inject]);