Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

davy_yg's avatar
Level 27

Helpers

I would take this as an example:

use Illuminate\Support\Str;

$contains = Str::contains('This is my name', 'my');

// true

Is Str the class anme and contains the function name?

0 likes
4 replies
jlrdw's avatar

@davy_yg it contains "my" so true

use Illuminate\Support\Str;

$contains = Str::contains('This is my name', 'my');

// true
siangboon's avatar

i meant I found that you almost everyday asking few simple questions which can simply find the answer by reading documents and googling, but you seem treat people here are very free and try to get quick answer or being your personal tutors. It's ok to ask and i like your attitude to keep asking when don't know also but don't you think as a developer you should learn how to troubleshoot and finding answer yourself before ask for help... for example, just the reply above, i took a minute or few to find a related lesson and pasted for you but did you watch it before you reply me? Anyway, this is my personal opinion and advice you can simply ignore it.

2 likes

Please or to participate in this conversation.