i have two strings, it can be more then two may be 5 or 6
$a = 2012-05-18 usr abc removed device id=858 sn=abc cmmac=000 drumac=123
$b = 2012-05-18 usr abc removed device id=858 sn=abc cmmac=000 drumac=12352015-03-26 usr mabdel001c removed device id=814 sn=abcd cmmac=1234 drumac=000
i need help i need a function or any way that when i compare $a with $b it should only returns me string like below
$remaining = '2015-03-26 usr mabdel001c removed device id=814 sn=abcd cmmac=1234 drumac=000';
i tried this function with no luck if (strcmp($var1, $var2) === 0) {