Ver Mensaje Individual
  #4 (permalink)  
Antiguo 20/04/2009, 08:48
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 17 años, 11 meses
Puntos: 2135
Respuesta: problemas con array y ficheros

Lo que puedes hacer es algo así:
Código php:
Ver original
  1. $abre= fopen("datos.txt", "w+");
  2. foreach($array_votos as $voto) {
  3.       fwrite( $abre, $voto . PHP_EOL );
  4. }
  5. fclose($abre);

Saludos.