📅  最后修改于: 2022-03-11 14:54:02.795000             🧑  作者: Mango
$str_contains = $request->birthDay;
if(str_contains($request->birthDay , '-')){
return 'this text contains "-" charactors';
}elseif(str_contains($request->birthDay , '/')){
return 'this text contains "/" charactors';
}