Bueno este es mi arreglo $campos. Y necesito organizar la posición [1]del arreglo donde se aloja la fecha y hora.
Código PHP:
Ver originalecho "<br><br><table border=1 cellspacing=5 width=1510 class='order-table table'>
@$fp = fopen("C:\usr\Final.txt", "r") or die("Error al abrir archivo");
while(!feof($fp)) {
$linea=fgets($fp);
$linea=trim(str_replace("'", "",$linea));
$campos=explode(",",$linea);
// $dir= "./";
echo "<tbody>
<tr>
<td>$campos[3]</td>
<td>$campos[0]</td>
<td>$campos[2]</td>
<td>$campos[4] $campos[5]</td>
<td>$campos[6] $campos[7]</td>
<td>$campos[1]</td>
<td>$$campos[8]</td>
<td>$campos[13]</td>
<td>$campos[14]</td>
</tr>
</tbody>";
}
La idea es que quede la fecha son muchos registros:
array(15) {
[0]=> string(16) "3017690246 :RUDB"
[1]=> string(23) "2015-09-25 17:33:21.000"
[2]=> string(10) "CALLCENTER"
[3]=> string(145) "ENVIADO"
[4]=> string(5) "JESUS"
[5]=> string(7) "CASTAÑO"
[6]=> string(13) "CRA 46 93-27"
[7]=> string(7) "APT 504"
[8]=> string(5) "52105"
[9]=> string(5) "12839"
[10]=> string(3) "902"
[11]=> string(11) "EDIF. IBIZA"
[12]=> string(21) "BARRIO: LA CASTELLANA"
[13]=> string(7) "ROSALBA"
[14]=> string(23) "2015-09-25 17:34:44.000" }
Agradecería la ayuda