Skip to content
This repository was archived by the owner on Dec 6, 2024. It is now read-only.

Commit 67746c2

Browse files
committed
doc
1 parent d50aca9 commit 67746c2

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
Array Path
1+
ArrayPath
22
==========
33

44
[![Author](http://img.shields.io/badge/[email protected]?style=flat-square)](https://twitter.com/matgrimm)
55
[![Latest Version](https://img.shields.io/github/release/mathiasgrimm/arraypath.svg?style=flat-square)](https://github.com/mathiasgrimm/arraypath/releases)
66
[![Total Downloads](https://img.shields.io/packagist/dt/mathiasgrimm/arraypath.svg?style=flat-square)](https://packagist.org/packages/mathiasgrimm/arraypath)
77

8-
Array Path is an easy and very convenient way for manipulating arrays, especially multidimensional.<br>
8+
ArrayPath is an easy and very convenient way for manipulating arrays, especially multidimensional.<br>
99
Forget about checking for existing indexes and/or getting an E_NOTICE.<br>
1010

1111
With ArrayPath you can easily Check, Add, Remove and Retrieve elements from any array

src/ArrayPath.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,15 @@ public static function exists($aSource, $mIndex)
165165
return $bExists;
166166
}
167167

168+
/**
169+
* Defines a class alias for the ArrayPath class.
170+
* The default alias is A and it comes with an ide_helper
171+
* which will be useful for ide auto-completion
172+
*
173+
* You can define your own alias if you want
174+
*
175+
* @param string $alias
176+
*/
168177
public static function registerClassAlias($alias = 'A')
169178
{
170179
class_alias('\MathiasGrimm\ArrayPath\ArrayPath', $alias);

0 commit comments

Comments
 (0)