<?php
$string="123";
echo md5($string);
?>
$string="123";
echo md5($string);
?>
<?php
$string= 'abc';$find = 'a';$pos = strpos($
string
, $
find
);
// Note our use of ===. Simply == would not work as expected
// because the position of 'a' was the 0th (first) character.if ($pos === false) {
echo "The string '$find' was not found in the string '$
string
'";
} else {
echo "The string '$find' was found in the string '$
string
'";
echo " and exists at position $pos";
}?>