array_key_exists

Supported Versions: PHP 4 >= 4.0.7, PHP 5, PHP 7, PHP 8
Checks if the given key or index exists in the array
Alias key_exists
<?php array_key_exists(string|int|float|bool|resource|null $key, array $array): bool
<?php         if ($hasDebugInfo && \is_array($debugInfo)) {

            foreach ($debugInfo as $k => $v) {

                if (!isset($k[0]) || "\0" !== $k[0]) {

                    if (\array_key_exists(self::PREFIX_DYNAMIC.$k, $a)) {

                        continue;

                    }

                    $k = self::PREFIX_VIRTUAL.$k;
<?php     public static function castCommonProxy(CommonProxy $proxy, array $a, Stub $stub, bool $isNested)

    {

        foreach (['__cloner__', '__initializer__'] as $k) {

            if (\array_key_exists($k, $a)) {

                unset($a[$k]);

                ++$stub->cut;

            }
<?php     public static function castOrmProxy(OrmProxy $proxy, array $a, Stub $stub, bool $isNested)

    {

        foreach (['_entityPersister', '_identifier'] as $k) {

            if (\array_key_exists($k = "\0Doctrine\\ORM\\Proxy\\Proxy\0".$k, $a)) {

                unset($a[$k]);

                ++$stub->cut;

            }
<?php     public static function castPersistentCollection(PersistentCollection $coll, array $a, Stub $stub, bool $isNested)

    {

        foreach (['snapshot', 'association', 'typeClass'] as $k) {

            if (\array_key_exists($k = "\0Doctrine\\ORM\\PersistentCollection\0".$k, $a)) {

                $a[$k] = new CutStub($a[$k]);

            }

        }
<?php         foreach (self::REQUEST_GETTERS as $prop => $getter) {

            $key = Caster::PREFIX_PROTECTED.$prop;

            if (\array_key_exists($key, $a) && null === $a[$key]) {

                if (null === $clone) {

                    $clone = clone $request;

                }
<?php         $children = $this->data[$item->position];



        foreach ($keys as $key) {

            if (isset($children[$key]) || \array_key_exists($key, $children)) {

                $data = clone $this;

                $data->key = $key;

                $data->position = $item->position;