This topic is locked

Custom Code - if contains

6/19/2007 8:39:27 AM
PHPRunner General questions
F
funkfish author

Hi,
I was wondering what I can use in the custom code field to see if ($value contains 'abc') then do something
Thanks!

Alexey admin 6/19/2007

Hi,
here is the code:

if (strpos($value,'abc')!==FALSE)

{

... do something

}


You can find more info in PHP manual:

http://www.php.net/strpos