Ver Mensaje Individual
  #3 (permalink)  
Antiguo 12/02/2009, 12:13
andermg
 
Fecha de Ingreso: febrero-2009
Mensajes: 10
Antigüedad: 15 años, 2 meses
Puntos: 0
Respuesta: Seleccionar un resultado de foreach

dentro del foreach mete un if donde pongas la condición:
Cita:
<?php
$url = "http***//ops.warrock.net/showprofile.aspx?p=435";
$lineas = file ($url);
foreach ($lineas as $linea_num => $linea)
{
if ($linea_num==155)
{
echo "Linea - <b>{$linea_num}</b> : " . htmlspecialchars($linea) . "<br>\n"; }
}
?>