while ($row = mysql_fetch_assoc($result)) {list( $anio, $mes, $dia ) = explode( "-", $row['arrival'] );echo "[$anio, $mes, $dia]<br />";}