Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Finds whether a variable is an array
<?php is_array(mixed $value): bool
<?php     public function __construct($context = array(), $loop = null)

    {


        if (($context instanceof LoopInterface || $context === null) && (\func_num_args() <= 1 || \is_array($loop))) {

            $swap = $loop === null ? array(): $loop;

            $loop = $context;

            $context = $swap;
<?php             $context = $swap;

        }



        if (!\is_array($context) || ($loop !== null && !$loop instanceof LoopInterface)) {

            throw new \InvalidArgumentException('Expected "array $context" and "?LoopInterface $loop" arguments');

        }
<?php         } else {

            $tcp = new TcpConnector(

                $loop,

                \is_array($context['tcp']) ? $context['tcp'] : array()

            );

        }
<?php                 $context['tls'] = new SecureConnector(

                    $tcp,

                    $loop,

                    \is_array($context['tls']) ? $context['tls'] : array()

                );

            }