Ciao.
Potresti utilizzare un semplice ciclo for anziché foreach.
ad esempio:
Codice PHP:
$news = new SimpleXMLElement($xmlstr);
for ( $i = 0; $i <= 1; $i++)
{
$item=$news["item"][$i]
}
Ciao.
Potresti utilizzare un semplice ciclo for anziché foreach.
ad esempio:
Codice PHP:
$news = new SimpleXMLElement($xmlstr);
for ( $i = 0; $i <= 1; $i++)
{
$item=$news["item"][$i]
}
Installa Forum HTML.it Toolset per una fruizione ottimale del Forum