ha şu yabanci sitedeki şu functionu isteyen senmiydin
<?php
function mysqrt($xxx,$top,$round)
{
$content='';
for ($n = 1; $n <= $xxx; $n++)
{
$x0 = (strlen($n)) * 10 * 10;
for($i=0;$i<=$top;$i++)
{
if($i=='0')
{
$x1x[$i] = 0.5 * ($x0 + ($n / $x0));
}
else
{
$x1x[$i] = 0.5 * ($x1x[$i-1] + ($n / $x1x[$i-1]));
}
}
$topitop=$x1x[$top];
$content.= "<table>\n";
$content.= "<tr><td> Number: </td><td>" . $n . "</td></tr>\n";
$content.= "<tr><td>My sqrt: </td><td>" . round($topitop, $round) . "</td></tr>\n";
$content.= "<tr><td> sqrt(): "."</td><td>" . round(sqrt($n), $round) . "</td></tr>\n";
$content.= "<tr><td>----</td></tr>\n";
$content.= "</table>\n\n";
}
return $content;
}
echo mysqrt(100,10,5);
?>