function con ($old, $new, $vid) { if ($old <> $new) { echo "$new"; createlog ($_COOKIE['RealName'], $_SESSION['old_vid'], $old, $new); } else {echo "$new";} } // when i am calling the function from this echo : echo "Testing Con :" . con("test123","TEST1244", $vid) ; // i am getting (IN HTML) TEST1244Testing Con :test123