File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1502,7 +1502,7 @@ data_forget($data, 'products.*.price');
1502
1502
<a name =" method-head " ></a >
1503
1503
#### ` head() ` {.collection-method}
1504
1504
1505
- The ` head ` function returns the first element in the given array:
1505
+ The ` head ` function returns the first element in the given array. If the array is empty, ` false ` will be returned :
1506
1506
1507
1507
``` php
1508
1508
$array = [100, 200, 300];
@@ -1515,7 +1515,7 @@ $first = head($array);
1515
1515
<a name =" method-last " ></a >
1516
1516
#### ` last() ` {.collection-method}
1517
1517
1518
- The ` last ` function returns the last element in the given array:
1518
+ The ` last ` function returns the last element in the given array. If the array is empty, ` false ` will be returned :
1519
1519
1520
1520
``` php
1521
1521
$array = [100, 200, 300];
You can’t perform that action at this time.
0 commit comments