Hi, On Sat, Jan 10, 2015 at 1:53 PM, Nikita Popov <nikita....@gmail.com> wrote: > But if I see this (taken from the tests) as the search & replacement values... > > $search=array('[?]',array('(?)','d','e'),'a','R'); > $repl=array( > array('ap(?)z[?]',"b[?](?)v",null,37,"[?]n[?]"), > array('a',array('b',null)), > array('k(?)j[?]') > ); > > ... I have a pretty hard time figuring out what this is actually supposed > to do. At this point str_replace is working on arbitrarily-nested arrays > and also has four options to control its behavior. > > Imho this is just too much complexity for a relatively minor use case.
I have to agree here. Nested arrays are too much ... it should be limited to single-dimention arrays. Cheers, Andrey. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php