You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add position use
* Adjust Order
* Adjust Order
* Adjust Order
* formatting
---------
Co-authored-by: rmunate <raulunatecastro@MacBook-Pro-de-Raul.local>
Co-authored-by: Taylor Otwell <taylor@laravel.com>
Copy file name to clipboardExpand all lines: strings.md
+32Lines changed: 32 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -68,6 +68,7 @@ Laravel includes a variety of functions for manipulating string values. Many of
68
68
[Str::password](#method-str-password)
69
69
[Str::plural](#method-str-plural)
70
70
[Str::pluralStudly](#method-str-plural-studly)
71
+
[Str::position](#method-str-position)
71
72
[Str::random](#method-str-random)
72
73
[Str::remove](#method-str-remove)
73
74
[Str::repeat](#method-str-repeat)
@@ -158,6 +159,7 @@ Laravel includes a variety of functions for manipulating string values. Many of
158
159
[padRight](#method-fluent-str-padright)
159
160
[pipe](#method-fluent-str-pipe)
160
161
[plural](#method-fluent-str-plural)
162
+
[position](#method-fluent-str-position)
161
163
[prepend](#method-fluent-str-prepend)
162
164
[remove](#method-fluent-str-remove)
163
165
[repeat](#method-fluent-str-repeat)
@@ -774,6 +776,21 @@ You may provide an integer as a second argument to the function to retrieve the
774
776
775
777
// VerifiedHuman
776
778
779
+
<aname="method-str-position"></a>
780
+
#### `Str::position()` {.collection-method}
781
+
782
+
The `Str::position` method returns the position of the first occurrence of a substring in a string. If the substring does not exist in the given string, `false` is returned:
@@ -1921,6 +1938,21 @@ You may provide an integer as a second argument to the function to retrieve the
1921
1938
1922
1939
// child
1923
1940
1941
+
<aname="method-fluent-str-position"></a>
1942
+
#### `position` {.collection-method}
1943
+
1944
+
The `position` method returns the position of the first occurrence of a substring in a string. If the substring does not exist within the string, `false` is returned:
0 commit comments