Categories
How to get first letter from string?
Hello! Why doesn't {{ $user->name[0] }} work ? How to get the first letter inside blade templating engine? Thanks to.
Answer the question
In order to leave comments, you need to log in
{{ Str::limit($myVariable, 1) }}
substr("string", 0, 0);
mb_substr
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question