Skip to content

[5.4] Added second $encoding parameter to length - #19047

Merged
taylorotwell merged 1 commit into
laravel:5.4from
itsa-sh:feature/str-length
May 5, 2017
Merged

[5.4] Added second $encoding parameter to length#19047
taylorotwell merged 1 commit into
laravel:5.4from
itsa-sh:feature/str-length

Conversation

@itsa-sh

@itsa-sh itsa-sh commented May 3, 2017

Copy link
Copy Markdown
  • Laravel Version: 5.4.21
  • PHP Version: N/A
  • Database Driver & Version: N/A

Description:

I needed to use Str::length($string, '8bit') and whilst I could simply use mb_strlen() I thought it would be acceptable to also add this to the Str::length method.

@itsa-sh itsa-sh changed the title [5.4] Added second $encoding parameter to lenth [5.4] Added second $encoding parameter to length May 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants