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


Groups > comp.lang.php > #6101

array filtering question

Date 2012-05-21 10:22 -0400
From bill <nobody@spamcop.net>
Newsgroups comp.lang.php
Subject array filtering question
Message-ID <GuWdnQ9JU-sg0ifSnZ2dnUVZ_omdnZ2d@cablespeedmi.com> (permalink)

Show all headers | View raw


I have a POST array with about 200 elements.
There MAY be one or more key elements that start with deleteF~
(for example deleteF~EAP, deleteF~Lowfee)

What I want to know is if any array element begins with deleteF~

I looked at array_keys, array_filter and others, but they seem to 
all match the whole key string.

I can process the whole array myself, but I am hoping that with 
all the array functions there might be one.

It would be nice if I could apply an array function and get back 
an array with just those keys. (they are checkboxes so the value 
is always "on", just their presence is enough information.)

bill

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


Thread

array filtering question bill <nobody@spamcop.net> - 2012-05-21 10:22 -0400
  Re: array filtering question Jerry Stuckle <jstucklex@attglobal.net> - 2012-05-21 10:46 -0400
    Re: array filtering question bill <nobody@spamcop.net> - 2012-05-21 11:18 -0400
      Re: array filtering question Jerry Stuckle <jstucklex@attglobal.net> - 2012-05-21 12:42 -0400
        Re: array filtering question bill <nobody@spamcop.net> - 2012-05-21 15:13 -0400
  Re: array filtering question Shake <QUITAESTO@QUITAESTO.NOES> - 2012-05-21 17:01 +0200
    Re: array filtering question bill <nobody@spamcop.net> - 2012-05-21 11:20 -0400
    Re: array filtering question Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-05-21 19:26 +0200
      Re: array filtering question bill <nobody@spamcop.net> - 2012-05-21 15:19 -0400

csiph-web