Feature Request #3260

Accept an array as well as key-string in Arr::path

Added by Marcus Cobden about 4 years ago. Updated about 4 years ago.

Status:ClosedStart date:09/21/2010
Priority:NormalDue date:
Assignee:Woody Gilk% Done:

100%

Category:Core
Target version:v3.0.9
Resolution:fixed Points:

Description

In the case where you're using the '.' delimiter in your string it'd be nice if you could supply an array instead of a key string.

Arr::path($config, array('foo','bar.co.uk'), 1);


Related issues

Related to Kohana v3.x - Feature Request #3261: Specify own delimiter to Arr::path Closed 09/21/2010

Associated revisions

Revision 98815127
Added by Woody Gilk about 4 years ago

Allow $path to be an array in Arr::path, fixes #3260

History

#1 Updated by Woody Gilk about 4 years ago

  • Status changed from New to Assigned
  • Target version set to v3.0.8

#2 Updated by Woody Gilk about 4 years ago

Does the array represent the already exploded path?

#3 Updated by Marcus Cobden about 4 years ago

Yep! That was the idea. So you could do the splitting with a regex function if you have some weird requirements.

#4 Updated by Woody Gilk about 4 years ago

  • Target version changed from v3.0.8 to v3.0.9

#5 Updated by Woody Gilk about 4 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100
  • Resolution set to fixed

Also available in: Atom PDF