Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46841 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90296 invoked from network); 20 Jan 2010 21:45:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jan 2010 21:45:39 -0000 X-Host-Fingerprint: 86.167.174.129 host86-167-174-129.range86-167.btcentralplus.com Received: from [86.167.174.129] ([86.167.174.129:1463] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F5/B2-11262-189775B4 for ; Wed, 20 Jan 2010 16:45:38 -0500 Message-ID: To: internals@lists.php.net Date: Wed, 20 Jan 2010 21:45:20 +0000 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Posted-By: 86.167.174.129 Subject: Dots and spaces in variable names are converted to underscores. From: nrixham@gmail.com (Nathan Rixham) Dots and spaces in variable names are converted to underscores. For example becomes $_POST["a_b"]. Any reason why? and any way to modify this behaviour to preserve dots and spaces? (dots specifically) reason, when building "linked data" / rdf based applications using PHP it's most beneficial to use subject / predicate URIs (eg http://xmlns.com/foaf/0.1/mbox) as form input names. also worth noting that if you send: you'll receive the following in php: $_POST[a_b] => array('c.d' => val) note no conversion of c.d to c_d regards, Nathan