Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Checks if a value exists in an array
<?php in_array(mixed $needle, array $haystack, bool $strict = false): bool
<?php             return unserialize($record['value']);

        }



        if (in_array($key, $this->intervals) &&

            ! is_null($interval = $this->getInterval($key))) {

            return $interval['resolver']();

        }
<?php         );



        if (str_starts_with($request->headers->get('CONTENT_TYPE'), 'application/x-www-form-urlencoded') &&

            in_array(strtoupper($request->server->get('REQUEST_METHOD', 'GET')), ['PUT', 'PATCH', 'DELETE'])) {

            parse_str($request->getContent(), $data);



            $request->request = new ParameterBag($data);
<?php         foreach ($headers as $key => $value) {

            $key = strtoupper(str_replace('-', '_', $key));



            if (! in_array($key, ['HTTPS', 'REMOTE_ADDR', 'SERVER_PORT'])) {

                $key = 'HTTP_'.$key;

            }
<?php     protected function fileIsServable(string $publicPath, string $pathToFile): bool

    {

        return $pathToFile &&

               ! in_array(pathinfo($pathToFile, PATHINFO_EXTENSION), ['php', 'htaccess', 'config']) &&

               str_starts_with($pathToFile, $publicPath) &&

               is_file($pathToFile);

    }