I made a function which is contain an include file, Can I compare this function with other function ?
e.g.
in a.php
<?php
$a = "this is file";
?>
in b.php
<?php
$b = "this is file";
?>
in function.php
<?php
function a(){
include("a.php");
}
function b(){
include ("b.php");
}
/*
my question is can I compare between function a() and function b() ?
like this
*/
if(a()==b()){
echo "it's same words";
}
else
{echo "not same words";}
?>
I know there's simple way to do my case, but it's just an example, and I want use this way to do my complicated algorithm.
Regards.
Nur Haryadi