strpos
laravel/framework
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Find the position of the first occurrence of a substring in a string
strpos
(
string $haystack
,
string $needle
,
int $offset
=
0
):
int
|
false
protected function
extractQueryString
(
$path
)
{
if ((
$queryPosition
=
strpos
(
$path
,
'?'
)) !==
false
) {
return [
substr
(
$path
,
0
,
$queryPosition
),
substr
(
$path
,
$queryPosition
),
src/Illuminate/Routing/UrlGenerator.php
return
$subject
;
}
$position
=
strpos
(
$subject
,
$search
);
if (
$position
!==
false
) {
return
substr_replace
(
$subject
,
$replace
,
$position
,
strlen
(
$search
));
src/Illuminate/Support/Str.php
public function
hasHintInformation
(
$name
)
{
return
strpos
(
$name
, static::
HINT_PATH_DELIMITER
) >
0
;
}
src/Illuminate/View/FileViewFinder.php