php string search

php string search

---------------------

<?php
$sku='jaydeepdfg-(dgfdgdfgfdgfdgdfg';

$skucheck = strstr($sku, '-(', true);
echo $skucheck;
?>

<?php
$email = 'Hanne Frøyna (NEW)';
    $domain = substr(strrchr($email, "("), 0);
    echo $domain;
 ?>
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