Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #15236

Re: replacing import_request_variables with extract - not working ...

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From "Christoph M. Becker" <cmbecker69@arcor.de>
Newsgroups comp.lang.php
Subject Re: replacing import_request_variables with extract - not working ...
Date Sat, 11 Apr 2015 19:23:21 +0200
Organization solani.org
Lines 35
Message-ID <mgbl9v$91m$1@solani.org> (permalink)
References <d047a1ae-3794-4015-ae00-2da2f62bab88@googlegroups.com> <acbaab92-b101-43cd-a26c-2377115eb9d7@googlegroups.com> <vgiiiap6v8n978ptts05cv3eokcdd1lcqp@4ax.com>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 7bit
X-Trace solani.org 1428772991 9270 eJwFwQkBwDAIA0BLIw2fnELBv4Td6TGxdpoadXUXklFdH3383QtEgRir4CQ760Iie2U135wfIpoRaw== (11 Apr 2015 17:23:11 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Sat, 11 Apr 2015 17:23:11 +0000 (UTC)
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0
X-User-ID eJwFwYEBACAEBMCViqeMI/z+I3Rn6tvrwM1hNA5FZlrvzgciT+1ix13KUKvDdESJ5moC+T417xHv
In-Reply-To <vgiiiap6v8n978ptts05cv3eokcdd1lcqp@4ax.com>
Cancel-Lock sha1:vJl2ebjWqW1Az/qCdyl/oJdaTLE=
X-NNTP-Posting-Host eJwNwoERACEIA7CVQEqr47wc7D+Cn0sGnSUwiZyc45f/aAt8WLPVwlWtYjfT6G2q0qmJhPYDEUoQrg==
Xref csiph.com comp.lang.php:15236

Show key headers only | View raw


Richard Yates wrote:

> On Sat, 11 Apr 2015 09:05:40 -0700 (PDT), Richard Townsend-Rose
> <richard.townsendrose@gmail.com> wrote:
> 
>> Christopher
>>
>> Exactly the reply needed ... but I am damned if I can read that prefix adds an underscore in the text.
>>
>> Anyway working a treat.
>>
>> Jerry - We have a methodology for checking any unwanted vars that ends any processing.
>>
>> richard
> 
> I went there and also could not find it at first. Wrote a little
> script to confirm that and undescore was added, then went back to
> http://php.net/manual/en/function.extract.php and there it was, right
> in plain sight:
> 
> "prefix 
>     Note that prefix is only required if flags is EXTR_PREFIX_SAME,
> EXTR_PREFIX_ALL, EXTR_PREFIX_INVALID or EXTR_PREFIX_IF_EXISTS. If the
> prefixed result is not a valid variable name, it is not imported into
> the symbol table. Prefixes are automatically separated from the array
> key by an underscore character."
> 
> Feeble minds think alike...

It might be possible, though, that this part of the manual is missing on
a mirror or in a translation.  If so, please file a bug report.

-- 
Christoph M. Becker

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

replacing import_request_variables with extract - not working ... Richard Townsend-Rose <richard.townsendrose@gmail.com> - 2015-04-11 06:08 -0700
  Re: replacing import_request_variables with extract - not working ... Jerry Stuckle <jstucklex@attglobal.net> - 2015-04-11 09:33 -0400
  Re: replacing import_request_variables with extract - not working ... Richard Townsend-Rose <richard.townsendrose@gmail.com> - 2015-04-11 07:04 -0700
    Re: replacing import_request_variables with extract - not working ... Jerry Stuckle <jstucklex@attglobal.net> - 2015-04-11 10:37 -0400
  Re: replacing import_request_variables with extract - not working ... "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-04-11 16:11 +0200
  Re: replacing import_request_variables with extract - not working ... Richard Townsend-Rose <richard.townsendrose@gmail.com> - 2015-04-11 09:05 -0700
    Re: replacing import_request_variables with extract - not working ... Richard Yates <richard@yatesguitar.com> - 2015-04-11 09:24 -0700
      Re: replacing import_request_variables with extract - not working ... "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-04-11 19:23 +0200
    Re: replacing import_request_variables with extract - not working ... Jerry Stuckle <jstucklex@attglobal.net> - 2015-04-11 14:44 -0400

csiph-web