24 lines
378 B
PHP
Executable File
24 lines
378 B
PHP
Executable File
<?php
|
|
$array = array();
|
|
|
|
$array[2]= 1;
|
|
$array[4]= 2;
|
|
$arqclusters=array();
|
|
$fclusters=array();
|
|
foreach($array as $item)
|
|
{
|
|
$arqclusters[$item]= "teste".$item.".csv";
|
|
$fclusters[$item]= fopen($arqclusters[$item], 'w');
|
|
|
|
}
|
|
|
|
foreach($array as $item)
|
|
{
|
|
fwrite($fclusters[$item], "Oi");
|
|
fclose($fclusters[$item]);
|
|
}
|
|
unset($array);
|
|
unset($arqclusters);
|
|
unset($fclusters);
|
|
?>
|