> For the complete documentation index, see [llms.txt](https://nagara.gitbook.io/code-zero-project/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nagara.gitbook.io/code-zero-project/helper/slug.md).

# slug

### slug()

slug() adalah function yang dibuat untuk membuat slug dari nama file example :\
judul berita mejadi judul-berita atau judul+berita.

```php
<?php
$string = "judul berita"
echo slug($string, "-");  // return judul-berita
```
