Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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';
}
 
PREVIOUS NEXT
Tagged: #charactor #exist #text #laravel
ADD COMMENT
Topic
Name
1+3 =