Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56949 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45044 invoked from network); 19 Dec 2011 20:19:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Dec 2011 20:19:09 -0000 Authentication-Results: pb1.pair.com header.from=paullik.paul@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=paullik.paul@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.170 as permitted sender) X-PHP-List-Original-Sender: paullik.paul@gmail.com X-Host-Fingerprint: 209.85.215.170 mail-ey0-f170.google.com Received: from [209.85.215.170] ([209.85.215.170:38149] helo=mail-ey0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A5/C0-38867-93C9FEE4 for ; Mon, 19 Dec 2011 15:19:07 -0500 Received: by eaai11 with SMTP id i11so5285273eaa.29 for ; Mon, 19 Dec 2011 12:19:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=Np0CZPUtXrDQTKj5ttlJY/a5M2ePH4OjGrTnw02nNAc=; b=O36n/bAfu+M2hu2Z5u+vGZWEIPWu1wE6Wv+v+8Lw4lisrSNL5xf4HVOO0yFRXc3e/o Nc6W4CtHYmZggv+WbMjqs6z3lcjde3LR/gstW9L3GzxCE9ni3fQv4zukztbwJuR1jcQR 4JivcO7fSKxUBT/+VqacnpObk7u5yWgvJ3Cio= Received: by 10.205.133.129 with SMTP id hy1mr2129851bkc.28.1324325941915; Mon, 19 Dec 2011 12:19:01 -0800 (PST) Received: from [192.168.16.100] ([188.24.243.188]) by mx.google.com with ESMTPS id e9sm43477317bka.15.2011.12.19.12.19.00 (version=SSLv3 cipher=OTHER); Mon, 19 Dec 2011 12:19:01 -0800 (PST) Message-ID: <4EEF9C79.4090104@gmail.com> Date: Mon, 19 Dec 2011 22:20:09 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20111108 Thunderbird/8.0 MIME-Version: 1.0 To: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Constant arrays From: paullik.paul@gmail.com ("Barbu Paul Gh.") Hello! I wonder why I cannot assign arrays to constants. According to the PHP manual: "only scalar and null values are allowed. Scalar values are integer, float, string or boolean values." What is the mechanism behind this? What's the explanation? -- Common sense is not so common - Voltaire http://tweak-it.tk/ - Personal portfolio and web-log - Barbu Paul - Gh. Visit My GitHub profile to see my open-source projects - https://github.com/paullik