Jump to content

[resolved] Contains


gerkintrigg

Recommended Posts

Hi!
I wondered what the best function, command line (or whatever else you want to call it) I should use to determine if a string contains another string.

so for example I need to know what the "contains" below needs to be changed to:

[code]<?php
if ($string_1 contains $string_2){
//do something;
}
?>[/code]

Thanks for your help.
Link to comment
https://forums.phpfreaks.com/topic/18391-resolved-contains/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.