Search
 
SCRIPT & CODE EXAMPLE
 

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';
}
Comment

PREVIOUS NEXT
Code Example
Php :: get count of results based on groupBy laravel 
Php :: laravel get query output 
Php :: brew install php with specific version 
Php :: increase the number in php by a certain percentage 
Php :: wordpress escape for html 
Php :: laravel json response decode 
Php :: datetime format laravel 
Php :: redirect back in laravel livewire 
Php :: php get hdd serial number 
Php :: twig print_r 
Php :: laravel pluralization text 
Php :: php convert date from dd/mm/yyyy to yyyy-mm-dd 
Php :: laravel migration column type json 
Php :: php dias entre dos fechas 
Php :: php strip tags 
Php :: Algeria 
Php :: laravel gmail 
Php :: laravel Postcontroller.php 
Php :: symfony call another controller 
Php :: how to set session timeout in codeigniter 
Php :: how to get php version in xampp 
Php :: php check name 
Php :: how to add cutom menu option in wordpress 
Php :: laravel hasone users relations 
Php :: phpspreadsheet applyFromArray wrap 
Php :: sort multi array php 
Php :: get_boundary_post wordpress 
Php :: laravel sidebar menu active 
Php :: php artisan preset react 
Php :: get image size php 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =