find in php string or
$a = 'How are you?';
if (strpos($a, 'are') !== false) {
echo 'true';
}
find in php string or
$a = 'How are you?';
if (strpos($a, 'are') !== false) {
echo 'true';
}
php string search in array
// Search a partial string matching in array elements
function array_search_partial($arr, $keyword) {
foreach($arr as $index => $string) {
if (strpos($string, $keyword) !== FALSE)
return $index;
}
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us