classes/phing/tasks/system/condition/ContainsCondition.php
public function evaluate()
    {
        if ($this->string === null || $this->subString === null) {
            throw new BuildException(
                "both string and substring are required "
                . "in contains"
            );
        }

        return $this->caseSensitive
            ? strpos($this->string, $this->subString) !== false
            : stripos($this->string, $this->subString) !== false;
    }
public function evaluate()
    {
        if ($this->string === null || $this->subString === null) {
            throw new BuildException(
                "both string and substring are required "
                . "in contains"
            );
        }

        return $this->caseSensitive
            ? strpos($this->string, $this->subString) !== false
            : stripos($this->string, $this->subString) !== false;
    }
public function evaluate ( ) { if ( $ this -> string === null || $ this -> subString === null ) { throw new BuildException ( "both string and substring are required " . "in contains" ) ; } return $ this -> caseSensitive ? strpos ( $ this -> string , $ this -> subString ) !== false : stripos ( $ this -> string , $ this -> subString ) !== false ; }
Check whether string contains substring.

@throws BuildException
Check whether string contains substring .