Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

Commit

Permalink
Update signatures in documentation with return types
Browse files Browse the repository at this point in the history
  • Loading branch information
ramsey committed Jun 19, 2019
1 parent 837e1a8 commit ec7a79d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Expand Up @@ -38,7 +38,7 @@ implement the [RFC][] in a future version.
## str_begins

``` php
str_begins(string $haystack , string $needle)
str_begins(string $haystack , string $needle): bool
```

Performs a *case-sensitive* check to determine whether `$haystack` begins with
Expand All @@ -59,7 +59,7 @@ if (str_begins($url, 'http://')) {
## str_ends

``` php
str_ends(string $haystack , string $needle)
str_ends(string $haystack , string $needle): bool
```

Performs a *case-sensitive* check to determine whether `$haystack` ends with
Expand All @@ -80,7 +80,7 @@ if (str_ends($file, '.log')) {
## str_ibegins

``` php
str_ibegins(string $haystack , string $needle)
str_ibegins(string $haystack , string $needle): bool
```

Performs a *case-insensitive* check to determine whether `$haystack` begins with
Expand All @@ -101,7 +101,7 @@ if (str_ibegins($url, 'https://')) {
## str_iends

``` php
str_iends(string $haystack , string $needle)
str_iends(string $haystack , string $needle): bool
```

Performs a *case-insensitive* check to determine whether `$haystack` ends with
Expand Down Expand Up @@ -145,7 +145,7 @@ if (mb_str_begins($runePoem, 'ᚠᛇᚻ')) {
## mb_str_ends

``` php
mb_str_ends(string $haystack , string $needle [, string $encoding = mb_internal_encoding()])
mb_str_ends(string $haystack , string $needle [, string $encoding = mb_internal_encoding()]): bool
```

Performs a *case-sensitive*, multi-byte safe `str_ends()` operation to check
Expand All @@ -168,7 +168,7 @@ if (mb_str_ends($sanskrit, 'माम् ॥')) {
## mb_str_ibegins

``` php
mb_str_ibegins(string $haystack , string $needle [, string $encoding = mb_internal_encoding()])
mb_str_ibegins(string $haystack , string $needle [, string $encoding = mb_internal_encoding()]): bool
```

Performs a *case-insensitive*, multi-byte safe `str_ibegins()` operation to check
Expand All @@ -191,7 +191,7 @@ if (mb_str_ibegins($poem, 'ΤῊ')) {
## mb_str_iends

``` php
mb_str_iends(string $haystack , string $needle [, string $encoding = mb_internal_encoding()])
mb_str_iends(string $haystack , string $needle [, string $encoding = mb_internal_encoding()]): bool
```

Performs a *case-insensitive*, multi-byte safe `str_iends()` operation to check
Expand Down

0 comments on commit ec7a79d

Please sign in to comment.