Re: ArrayPath

From: Date: Tue, 07 Oct 2014 16:12:59 +0000
Subject: Re: ArrayPath
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-77804@lists.php.net to get a copy of this message
Hi! How is it better than: $idx3 = $_POST['idx1']['idx2']['idx3']; ? Regards, Florian Margaine Le 7 oct. 2014 18:05, "Mathias Grimm" <mathiasgrimm@gmail.com> a écrit : > 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'); > > > Regards, > Mathias >

« previous php.internals (#77804) next »