Saturday, August 17, 2013

check two variable containing strings are same or not

<?php
$t=strcmp("dabc","abc");
if($t==0)
echo 'both string are same';
else
echo 'string are not same';
 ?>

No comments:

Post a Comment