$a = potencia (5,2);
function potencia ($a, $b){
$i = 0;
$c = 1;
while ($i < $b){
if ($b == 0){
$c = 1;
}
$c = $c * $a;
$i = $i + 1;
}
echo ("resultado : $c");
}
?>
$arr = array(1,2,3);
$f = printe($arr);
function printe($t){
foreach ($t as $value){
echo ($value);
echo("
");
}
}
?>