Hasil fungsi pengembalian php ke variabel
You can create function in php this way:
<?php
$name = array("ghp", "hamid", "amin", "Linux");
function find()
{
$find = 0;
if(in_array('hamid', $name))
{
$find = 1;
return $find;
}
else
{
return $find;
}
}
//###################
$answare = find();
echo $answare;
?>
Energetic Eland