Showing posts with label Search string inside second string PHP. Show all posts
Showing posts with label Search string inside second string PHP. Show all posts

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';
}