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
array_key_exists(string|int $key, array $array): bool
        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;
    public static function castCommonProxy(CommonProxy $proxy, array $aStub $stubbool $isNested)

    {

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

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

                unset(
$a[$k]);

                ++
$stub->cut;

            }
    public static function castOrmProxy(OrmProxy $proxy, array $aStub $stubbool $isNested)

    {

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

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

                unset(
$a[$k]);

                ++
$stub->cut;

            }
    public static function castPersistentCollection(PersistentCollection $coll, array $aStub $stubbool $isNested)

    {

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

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

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

            }

        }
        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;

                }
        $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;