That would cause some problems indeed. But you could scape as in other strings. at('a/\/b') not nice but we have the same for every string
On Tuesday, October 7, 2014, Johannes Schlüter <johan...@schlueters.de> wrote: > On Tue, 2014-10-07 at 17:05 +0100, Mathias Grimm wrote: > > Hi, > > I would like to suggest something for php like a class I am using > > > > https://github.com/mathiasgrimm/arraypath > > > > The reason is to access arrays like this: > > > > $idx3 = ArrayPath::get('idx1/idx2/idx3', $_POST, 'myDefaultValue'); > > what hppens if my array has a / as part of the key? Do I have to check > that beforehand and set a custom identifier? So what happens if I use > your example with $_GET instead of $_POST and a user requests > foo.php?idx1=idx2/idx3 > > I'm not really convinced. > > johannes > >