Answers for "laravel replace white space with dash"

PHP
0

laravel replace white space with dash

$string = preg_replace("/[\s_]/", "-", $slug);
Posted by: Guest on October-07-2021

Code answers related to "laravel replace white space with dash"

Browse Popular Code Answers by Language