File tree 7 files changed +23
-23
lines changed
reference/strings/functions
7 files changed +23
-23
lines changed Original file line number Diff line number Diff line change 47
47
<refsect1 role =" returnvalues" >
48
48
&reftitle.returnvalues;
49
49
<para >
50
- Returns < 0 if <parameter >string1</parameter > is less than
51
- <parameter >string2</parameter >; > 0 if <parameter >string1</parameter >
52
- is greater than <parameter >string2</parameter >, and 0 if they are
50
+ Returns < literal >-1</ literal > if <parameter >string1</parameter > is less than
51
+ <parameter >string2</parameter >; < literal >1</ literal > if <parameter >string1</parameter >
52
+ is greater than <parameter >string2</parameter >, and < literal >0</ literal > if they are
53
53
equal.
54
54
</para >
55
55
</refsect1 >
Original file line number Diff line number Diff line change 45
45
<refsect1 role =" returnvalues" >
46
46
&reftitle.returnvalues;
47
47
<para >
48
- Returns < 0 if <parameter >string1</parameter > is less than
49
- <parameter >string2</parameter >; > 0 if <parameter >string1</parameter >
50
- is greater than <parameter >string2</parameter >, and 0 if they are
48
+ Returns < literal >-1</ literal > if <parameter >string1</parameter > is less than
49
+ <parameter >string2</parameter >; < literal >1</ literal > if <parameter >string1</parameter >
50
+ is greater than <parameter >string2</parameter >, and < literal >0</ literal > if they are
51
51
equal.
52
52
</para >
53
53
</refsect1 >
Original file line number Diff line number Diff line change 49
49
<refsect1 role =" returnvalues" >
50
50
&reftitle.returnvalues;
51
51
<para >
52
- Similar to other string comparison functions, this one returns < 0 if
53
- <parameter >string1</parameter > is less than <parameter >string2</parameter > >
54
- 0 if <parameter >string1</parameter > is greater than
55
- <parameter >string2</parameter >, and 0 if they are equal.
52
+ Similar to other string comparison functions, this one returns < literal >-1</ literal > if
53
+ <parameter >string1</parameter > is less than <parameter >string2</parameter >
54
+ < literal >1</ literal > if <parameter >string1</parameter > is greater than
55
+ <parameter >string2</parameter >, and < literal >0</ literal > if they are equal.
56
56
</para >
57
57
</refsect1 >
58
58
Original file line number Diff line number Diff line change 48
48
<refsect1 role =" returnvalues" >
49
49
&reftitle.returnvalues;
50
50
<para >
51
- Similar to other string comparison functions, this one returns < 0 if
52
- <parameter >string1</parameter > is less than <parameter >string2</parameter >; >
53
- 0 if <parameter >string1</parameter > is greater than
54
- <parameter >string2</parameter >, and 0 if they are equal.
51
+ Similar to other string comparison functions, this one returns < literal >-1</ literal > if
52
+ <parameter >string1</parameter > is less than <parameter >string2</parameter >;
53
+ < literal >1</ literal > if <parameter >string1</parameter > is greater than
54
+ <parameter >string2</parameter >, and < literal >0</ literal > if they are equal.
55
55
</para >
56
56
</refsect1 >
57
57
Original file line number Diff line number Diff line change 56
56
<refsect1 role =" returnvalues" >
57
57
&reftitle.returnvalues;
58
58
<para >
59
- Returns < 0 if <parameter >string1</parameter > is less than
60
- <parameter >string2</parameter >; > 0 if <parameter >string1</parameter > is
61
- greater than <parameter >string2</parameter >, and 0 if they are equal.
59
+ Returns < literal >-1</ literal > if <parameter >string1</parameter > is less than
60
+ <parameter >string2</parameter >; < literal >1</ literal > if <parameter >string1</parameter > is
61
+ greater than <parameter >string2</parameter >, and < literal >0</ literal > if they are equal.
62
62
</para >
63
63
</refsect1 >
64
64
Original file line number Diff line number Diff line change 59
59
<refsect1 role =" returnvalues" >
60
60
&reftitle.returnvalues;
61
61
<para >
62
- Returns < 0 if <parameter >string1</parameter > is less than
63
- <parameter >string2</parameter >; > 0 if <parameter >string1</parameter >
64
- is greater than <parameter >string2</parameter >, and 0 if they are
62
+ Returns < literal >-1</ literal > if <parameter >string1</parameter > is less than
63
+ <parameter >string2</parameter >; < literal >1</ literal > if <parameter >string1</parameter >
64
+ is greater than <parameter >string2</parameter >, and < literal >0</ literal > if they are
65
65
equal.
66
66
</para >
67
67
</refsect1 >
Original file line number Diff line number Diff line change 79
79
<refsect1 role =" returnvalues" >
80
80
&reftitle.returnvalues;
81
81
<para >
82
- Returns < 0 if <parameter >haystack</parameter > from position
83
- <parameter >offset</parameter > is less than <parameter >needle</parameter >, >
84
- 0 if it is greater than <parameter >needle</parameter >, and 0 if they are equal.
82
+ Returns < literal >-1</ literal > if <parameter >haystack</parameter > from position
83
+ <parameter >offset</parameter > is less than <parameter >needle</parameter >, < literal >1</ literal >
84
+ if it is greater than <parameter >needle</parameter >, and < literal >0</ literal > if they are equal.
85
85
If <parameter >offset</parameter > is equal to (prior to PHP 7.2.18, 7.3.5) or
86
86
greater than the length of <parameter >haystack</parameter >, or the
87
87
<parameter >length</parameter > is set and is less than 0,
You can’t perform that action at this time.
0 commit comments