Skip to content

Commit e421575

Browse files
author
coa
committed
isNumeric method added and tested
1 parent b38e1f1 commit e421575

File tree

5 files changed

+806
-138
lines changed

5 files changed

+806
-138
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,15 @@ Checks whether array has any associative keys.
234234
```php
235235
SimpleArrayLibrary::isAssociative(array('a' => 1, array(1))); // true
236236
SimpleArrayLibrary::isAssociative(array(1, 1)); // false
237+
SimpleArrayLibrary::isAssociative(array()); // false
238+
```
239+
isNumeric
240+
------------------------------
241+
Checks whether array has all numeric keys starting with zero and progressing by one for each new element.
242+
```php
243+
SimpleArrayLibrary::isNumeric(array('a' => 1, array(1))); // false
244+
SimpleArrayLibrary::isNumeric(array(1, 1)); // true
245+
SimpleArrayLibrary::isNumeric(array()); // false
237246
```
238247
isSubArray
239248
------------------------------

changelog.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
4.1.0
2+
==============================
3+
isNumeric method added
14
4.0.0
25
==============================
36
saveField method now accepts 0 and '0' as valid values for id parameter and no longer throws an exception if either of those values is passed
@@ -14,13 +17,11 @@ selectRandomArrayElements method added
1417
==============================
1518
haveSameKeys & haveSameValues methods added, they will replace haveEqualKeys & haveEqualValues respectively, which are depricated.
1619
hasOnlyKeys method added & tested
17-
1820
2.0.0
1921
==============================
2022
CastColumns method allows for empty $matrix input, without throwing an exception.
2123
Tests code coverage improved to 100%.
2224
Changelog file added.
23-
2425
1.1.0
2526
==============================
26-
Delete columns method added.
27+
Delete columns method added.

0 commit comments

Comments
 (0)