|
|
@@ -10,17 +10,17 @@ A ``Hash`` (as in PHP arrays) class, capable of extracting data using an intuiti
|
|
|
|
|
|
```php
|
|
|
$things = [
|
|
|
- ['name' => 'Mark', 'age' => 15],
|
|
|
- ['name' => 'Susan', 'age' => 30]
|
|
|
- ['name' => 'Lucy', 'age' => 25]
|
|
|
+ ['name' => 'Mark', 'age' => 15],
|
|
|
+ ['name' => 'Susan', 'age' => 30]
|
|
|
+ ['name' => 'Lucy', 'age' => 25]
|
|
|
];
|
|
|
|
|
|
-$bigPeople = Hash::extract('{n}[age>21].name', $things);
|
|
|
+$bigPeople = Hash::extract($things, '{n}[age>21].name');
|
|
|
|
|
|
// $bigPeople will contain ['Susan', 'Lucy']
|
|
|
```
|
|
|
|
|
|
-Check the [official Hash class documentation](http://book.cakephp.org/3.0/en/core-utility-libraries/hash.html)
|
|
|
+Check the [official Hash class documentation](http://book.cakephp.org/3.0/en/core-libraries/hash.html)
|
|
|
|
|
|
### Inflector
|
|
|
|
|
|
@@ -33,7 +33,7 @@ echo Inflector::pluralize('Apple'); // echoes Apples
|
|
|
echo Inflector::singularize('People'); // echoes Person
|
|
|
```
|
|
|
|
|
|
-Check the [official Inflector class documentation](http://book.cakephp.org/3.0/en/core-utility-libraries/inflector.html)
|
|
|
+Check the [official Inflector class documentation](http://book.cakephp.org/3.0/en/core-libraries/inflector.html)
|
|
|
|
|
|
### String
|
|
|
|
|
|
@@ -54,7 +54,7 @@ This is the song
|
|
|
that never ends.
|
|
|
```
|
|
|
|
|
|
-Check the [official String class documentation](http://book.cakephp.org/3.0/en/core-utility-libraries/string.html)
|
|
|
+Check the [official String class documentation](http://book.cakephp.org/3.0/en/core-libraries/string.html)
|
|
|
|
|
|
### Security
|
|
|
|
|
|
@@ -67,7 +67,7 @@ $result = Security::encrypt($value, $key);
|
|
|
Security::decrypt($result, $key);
|
|
|
```
|
|
|
|
|
|
-Check the [official Security class documentation](http://book.cakephp.org/3.0/en/core-utility-libraries/security.html)
|
|
|
+Check the [official Security class documentation](http://book.cakephp.org/3.0/en/core-libraries/security.html)
|
|
|
|
|
|
### Xml
|
|
|
|
|
|
@@ -85,4 +85,4 @@ $data = array(
|
|
|
$xml = Xml::build($data);
|
|
|
```
|
|
|
|
|
|
-Check the [official Xml class documentation](http://book.cakephp.org/3.0/en/core-utility-libraries/xml.html)
|
|
|
+Check the [official Xml class documentation](http://book.cakephp.org/3.0/en/core-libraries/xml.html)
|