php find string Match or unmatch

php find string

---------------
<?php
$var="07-Apr-2016 13_caytech";

if( strpos($var, '_caytech') !== false )
{
    echo "match";
}
else
{
    echo "unmatch";
}
?>


Share on Google Plus

About quora Questions & Answers A-Z

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment