> For the complete documentation index, see [llms.txt](https://docs.pmpf.johnodon.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pmpf.johnodon.com/functions/startswith.md).

# startsWith()

Checks if a string starts with a certain character/string

Checks if a string starts with a certain character or string

#### Usage:

```php
if startsWith($string, "test") {
// do this code
}
```
