19 lines
284 B
PHP
19 lines
284 B
PHP
<?php
|
|
/**
|
|
* Created by PhpStorm.
|
|
* User: marcoglietsch
|
|
* Date: 29.03.19
|
|
* Time: 22:36
|
|
*/
|
|
|
|
namespace App\Helpers;
|
|
|
|
class StringHelper
|
|
{
|
|
static function toURL($string)
|
|
{
|
|
$string = strtolower($string);
|
|
$string = str_replace(' ', '-', $string);
|
|
return $string;
|
|
}
|
|
} |