How to do random ip duplication? There is such a field in the software I use. There is a single line field here.
function randIP()
{
return "11.11.11." . rand(111, 111);
}
but I have 2 rows of strings. I want to do it like this but it throws an error.
function randIP()
{
return "11.11.11." . rand(111, 111);
return "22.22.22." . rand(222, 222);
}
I want to do like this. but it gives an error, what is the correct one?
THIS IS THE LAST I DID THIS DO YOU THINK TRUE?
function randIP()
{
$ip= "11.111.11." . rand(111, 111);
$ip1= "22.222.22." . rand(222, 222);
return array('ip'=>$ip,'ip1'=>$ip1);
}
Aucun commentaire:
Enregistrer un commentaire