File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ Laravel includes a variety of global "helper" PHP functions. Many of these funct
78
78
[ str_limit] ( #method-str-limit )
79
79
[ starts_with] ( #method-starts-with )
80
80
[ str_after] ( #method-str-after )
81
+ [ str_before] ( #method-str-before )
81
82
[ str_contains] ( #method-str-contains )
82
83
[ str_finish] ( #method-str-finish )
83
84
[ str_is] ( #method-str-is )
@@ -606,6 +607,14 @@ The `str_after` function returns everything after the given value in a string:
606
607
607
608
// ' a test'
608
609
610
+ <a name =" method-str-before " ></a >
611
+ #### ` str_before() ` {#collection-method}
612
+
613
+ The ` str_before ` function returns everything before the given value in a string:
614
+
615
+ $value = str_before('Test :it before', ':it before');
616
+
617
+ // 'Test '
609
618
610
619
<a name =" method-str-contains " ></a >
611
620
#### ` str_contains() ` {#collection-method}
You can’t perform that action at this time.
0 commit comments