Yeh, you were supposed to remove the foreach statement as it serves no purpose.
[php]
<?php
$data = file_get_conten ts('http://thescripts.com' );
$data = strip_tags($dat a,"<tr>");
// now string becomes an array
$data = explode("<tr>", $data);
for($_i = 13; $_i < 17; ++$_i)
{
echo $_i. " " . $data[$_i] . "<br />";
}
?>
[/php]
[php]
<?php
$data = file_get_conten ts('http://thescripts.com' );
$data = strip_tags($dat a,"<tr>");
// now string becomes an array
$data = explode("<tr>", $data);
for($_i = 13; $_i < 17; ++$_i)
{
echo $_i. " " . $data[$_i] . "<br />";
}
?>
[/php]
Comment