Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91137 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21204 invoked from network); 9 Feb 2016 02:53:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Feb 2016 02:53:17 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.176 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.161.176 mail-yw0-f176.google.com Received: from [209.85.161.176] ([209.85.161.176:36622] helo=mail-yw0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 72/80-15491-B9459B65 for ; Mon, 08 Feb 2016 21:53:16 -0500 Received: by mail-yw0-f176.google.com with SMTP id q190so117778743ywd.3 for ; Mon, 08 Feb 2016 18:53:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=hrGBR9p6CuFHsu276bOw9CYZPRykcFWrh5ItY6T6RhI=; b=JgW4VLgN4NEZaGThuq2RPZyZb0ukU06E1xRhZ/+cdfl++drhQRUv4trpM5MDGjCOVD a4r0ZrgoIjfgVBHt+C/sVYzdc2XCYf0Jd8iz3RAsIv8pyA6BvOI9AOJVS/eae33l2kv4 Isbjn/6ltNvzB5W+TAdj1sz5Zr8cdUx18XzJ8LGW1ITbQqf9YcxOr8k7q9hDq2NcwtD/ 053Goz2HwKTfM1eL6kE4QVy4VA5cwKFn91oBWWEnqzs52nnnvSA1LQ/NfDL6eUQZuaAS uZMf6e1eUGu5onrzHbpwoFyWUNkY95IdFl66Ljeow6Ruj9t51DWEy2fM2riw+izLHnwC hI9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=hrGBR9p6CuFHsu276bOw9CYZPRykcFWrh5ItY6T6RhI=; b=iM+VV50ow7ogILHzsRIgcpYCkspFsFfcVd41glRLI3/Q9wmCL7os9wGRkwstX4mV3K vrUWJnZL7MB9Fy59oWHSoGSgI36beJi2YE4qmF4BT+fK7t0w3FZ/uD5zxpU60VW4XYFR i0k5C2A3eL55d7yGi7SqJwqESGfzy7s+JqtMELyv3A2xWatu+HPVkPCFpqX6k1KcPaUL 798BZcoVYlv6AVseafBNmwYEbQrLTmsqq/ui7GOb2Fr2aB+iV4HonthxV+TRnw6/N/fA LujEUCvefJgi/80sqQAS913Eu1etbQONofQRgsZopoANlHtZwJqekFOhCI0n/q0uegxZ RYsw== X-Gm-Message-State: AG10YOTB/me+a5dDzf0+9+SjWAs2X7CiF5ZhjZIDxJiDNbHiJc4T4ppZFCUNvyNZ+EHsRnuEUA7upx2zRYgLcg== X-Received: by 10.129.73.3 with SMTP id w3mr4037124ywa.346.1454986393500; Mon, 08 Feb 2016 18:53:13 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.129.109.22 with HTTP; Mon, 8 Feb 2016 18:52:34 -0800 (PST) In-Reply-To: References: <56B8BA24.7040003@lsces.co.uk> Date: Tue, 9 Feb 2016 11:52:34 +0900 X-Google-Sender-Auth: sBbpqF2_Bm_gsgvDckqjgT_TTRs Message-ID: To: =?UTF-8?B?S2lubiBKdWxpw6Nv?= Cc: Lester Caine , "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Proposal for a new array function From: yohgaki@ohgaki.net (Yasuo Ohgaki) Hi, On Tue, Feb 9, 2016 at 1:03 AM, Kinn Juli=C3=A3o wrote: > And what's wrong with doing: > https://gist.github.com/kinncj/566bbc019be5707b01f2 ? Perfectly ok to me while it would be slower. BTW, it's easy and quick to detect array is real array with PHP7. It would be handy if kind of array can be returned. It should be different API. is_array() may be extended. bool is_array(mixed $var [, bool $is_real_array]); or bool is_array(mixed $var [, long $type_of_array]); where $type_of_array is bit flags such as PHP_ARRAY_REAL, PHP_ARRAY_HASH, PHP_ARRAY, PHP_ARRAY_RECLUSIVE, etc. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net