What are some best practices for using Clean URLs in PHP scripts?

Clean URLs are user-friendly URLs that are easy to read and understand. To implement Clean URLs in PHP scripts, it is recommended to use mod_rewrite in Apache to rewrite URLs and remove query strings. This can improve SEO, user experience, and make URLs more shareable.

```php
// .htaccess file to enable mod_rewrite
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
```

This code snippet enables mod_rewrite in Apache and redirects all requests to index.php while passing the URL as a query parameter. This allows for clean URLs without query strings in PHP scripts.