Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
8711bb3d
Commit
8711bb3d
authored
Sep 22, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added better comments to arr class.
parent
0c4018ec
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
index.php
application/views/home/index.php
+1
-1
arr.php
laravel/arr.php
+11
-3
No files found.
application/views/home/index.php
View file @
8711bb3d
...
@@ -73,7 +73,7 @@
...
@@ -73,7 +73,7 @@
<p>
<p>
You have successfully installed the Laravel framework. Laravel is a simple framework
You have successfully installed the Laravel framework. Laravel is a simple framework
t
o help
web artisans create beautiful, creative applications using elegant, expressive
t
hat helps
web artisans create beautiful, creative applications using elegant, expressive
syntax. You'll love using it.
syntax. You'll love using it.
</p>
</p>
...
...
laravel/arr.php
View file @
8711bb3d
<?php
namespace
Laravel
;
<?php
namespace
Laravel
;
use
Closure
;
use
Closure
;
class
Arr
{
class
Arr
{
/**
/**
* Get an item from an array.
* 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 array $array
* @param string $key
* @param string $key
* @param mixed $default
* @param mixed $default
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment