IF CONTAINS ()...

Explanation

Evaluates true or false, whether or not a string contains the specified value.

Usage:

<!--if contains($test,$what)--> display this <!--end if-->

Example(s)

<!--if contains($telephone,937)--> The telephone number does contain 937 <!--end if-->

Checks the value of $telephone and if the variable contains ‘937’ then it displays the message to the screen

Back To Contents