I want my foreach starts of ex : $Element = 10 up to 20
At the moment :
foreach($lang['tech'] as $Element => $ElementName)
{
$parse['tt_name'] = $ElementName; // Displays the name
if($Element > 99) // At over 99 foreach stop
{
break;
}
}
I wish I had this principle in :
foreach($lang['tech'] as **$Element(10 to 20)** => $ElementName) // Display Element 10 to 20
{
$parse['tt_name'] = $ElementName; // Displays the name
}
Thanks for your help
forloop instead offoreach?for ($i = 10; $i <= 20; $i++) { $parse['tt_name'] = $lang['tech'][$i]; }?