Answers for "how if charactor is exist in text in laravel"

PHP
1

how if charactor is exist in text in laravel

$str_contains = $request->birthDay;
if(str_contains($request->birthDay , '-')){
  return 'this text contains "-" charactors';
}elseif(str_contains($request->birthDay , '/')){
  return 'this text contains "/" charactors';
}
Posted by: Guest on February-03-2021

Code answers related to "how if charactor is exist in text in laravel"

Browse Popular Code Answers by Language