Tuesday, 23 December 2014

Check string exist in another string php


Check string exist in another string php

You can check this using the strpos() function. Check below example.

$string = 'Dress material with Standard Stitching';
if(strpos($string,'Dress material') !== false){
    echo 'Condition true';
}

No comments: