ALIAS

starts()

ShortPHP reference for str_starts_with().

Signature

str_starts_with(string $haystack, string $needle): bool

Example

starts(...);

PHP equivalent

str_starts_with() is the canonical PHP function. ShortPHP provides starts() as the convenience alias.

Extension: Core

Official PHP manual ↗

Reference navigation

Previous: rep()

Next: sl()

Back to reference