strpos ( string $haystack , mixed $needle [, int $offset = 0 ] )
Returns the needle
haystack
number position that first appears in the. Not found back false
str_replace ( mixed $search , mixed $replace , mixed $subject [, int &$count ] )
The function returns a string or an array. The string or array is the subject
result of replacing all of search
them replace
. $count
Returns the number of matches. $search
and $replace
can be arrays for multiple substitutions.
strtr ( string $str , string $from , string $to )
$to
will replace the $from
problem easily
Strtr (string $str, array $replace _pairs)
//similar str_replace
This function returns a copy of str
and will be in from
The characters specified in the are converted to the corresponding characters in the to
. For example, N] each occurrence will be replaced with < Span class= "Inline-math-svg math-jax-postprocess" > N] , where $n is a displacement (offset) that is valid for all two parameters.
If from
to
It is not equal to the length, the extra character portion is ignored. Will be the str
same length as the returned value.
strstr ( string $haystack , mixed $needle [, bool $before_needle = false ] )
Returns the string from the beginning of the haystack
needle
first occurrence to the haystack
end of the string. aliases strchr
strrchr ( string $haystack , mixed $needle )
The function returns a portion of the haystack
string, starting at needle
the last occurrence, until the haystack
end.
str_repeat ( string $input , int $multiplier )
Returns input
multiplier
The result after repeating the second.
str_pad ( string $input , int $pad_length [, string $pad_string = " " [, int $pad_type = STR_PAD_RIGHT ]] )
The function returns the input
result of being padded from the left, right, or both ends to the length of the set. If an optional pad_string
parameter is not specified, input
It will be filled with a space character, otherwise it will be pad_string
filled to the specified length.
str_shuffle ( string $str )
Disrupts a string, using any one of the possible sorting schemes.
strrev ( string $string )
Returns string
the inverted string.
substr ( string $string , int $start [, int $length ] )
Returns string
a string start
length
that is specified by the and parameter substring. detail
substr_replace ( mixed $string , mixed $replacement , mixed $start [, mixed $length ] )
Substitution is made in a copy of the string by using a substring that is qualified with the string
start
optional length
parameter replacement
.