<?php
$str1 = "Software &amp; Technology";
$str2 = "Software & Technology";
if (html_entity_decode($str1) == html_entity_decode($str2))
    echo "Strings are same\n";
else
    echo "Strings are not same\n";
?>