added better comments to arr class.
This commit is contained in:
parent
0c4018ec88
commit
8711bb3d85
|
@ -73,7 +73,7 @@
|
|||
|
||||
<p>
|
||||
You have successfully installed the Laravel framework. Laravel is a simple framework
|
||||
to help web artisans create beautiful, creative applications using elegant, expressive
|
||||
that helps web artisans create beautiful, creative applications using elegant, expressive
|
||||
syntax. You'll love using it.
|
||||
</p>
|
||||
|
||||
|
|
|
@ -1,12 +1,20 @@
|
|||
<?php namespace Laravel;
|
||||
|
||||
use Closure;
|
||||
<?php namespace Laravel; use Closure;
|
||||
|
||||
class Arr {
|
||||
|
||||
/**
|
||||
* Get an item from an array.
|
||||
*
|
||||
* "Dot" notation may be used to dig deep into the array.
|
||||
*
|
||||
* <code>
|
||||
* // Get the $array['user']['name'] value from the array
|
||||
* $name = Arr::get($array, 'user.name');
|
||||
*
|
||||
* // Return a default from if the specified item doesn't exist
|
||||
* $name = Arr::get($array, 'user.name', 'Taylor');
|
||||
* </code>
|
||||
*
|
||||
* @param array $array
|
||||
* @param string $key
|
||||
* @param mixed $default
|
||||
|
|
Loading…
Reference in New Issue