Gen. partnerAlgotech

PHP function stristr()

the matched substring. If needle is not found, returns false.

|
September 11, 2019

Availability in PHP 4.0

Case-insensitive str

Parameters

Parameter Data type Default value Note
$haystack string not The string to search in
$needle mixed not
$before_needle bool null If true, stristr returns the part of the haystack before the first occurrence of the needle.

Return values

string

the matched substring. If needle is not found, returns false.

Additional resources

Official stristr documentation

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.