Welcome aboard! We are happy you are here and wish you good net-raft!
<?php
Route::get('/myroutes',function(){
$reg_exUrl = "/[a-z]/i";
$str = "hello";
if(preg_match($reg_exUrl, $str)) {
return 'found';
} else {
return 'not found';
}
});
<?php
Route::get('/myroutes',function(){
$string = 'How are you?';
if (strpos($string, 'are') !== false) {
return 'found';
}
})
The most helpful LARAVEL solutions
hostname laravelLARAVEL Click to see more ... 758 52