Commit 8711bb3d authored by Taylor Otwell's avatar Taylor Otwell

added better comments to arr class.

parent 0c4018ec
......@@ -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>
......
<?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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment