I have two questions:
1) how can i delete th last position of an array???
Example:
a[1] = "jhon"
a[2] = "doe"
a[3] = "anything" <- i want to delete this...
but the result is:
a[1] = "jhon"
a[2] = "doe"
a[3] = "" <- this position still exist
2) why this doesent work when i have more than one word at any position of the array???
$link = "";
for ($z=1;$z<=$cantidad;$z++)
{ $link .= "&r_articulo[$z]=" . $r_articulo[$z]; $link .= "&r_cantidad[$z]=" . $r_cantidad[$z];
$link .= "&r_rubro[$z]=" . $r_rubro[$z];
}
$hay = count($lista_prove[$i]);
for ($x=1;$x<=$hay;$x++)
{
echo "<a href=main.php?cantidad=$cantidad&que=alta_opcom_renglon&quitar=si&id=$i&cual=$x" . $link . ">Q</a> - {$lista_prove[$i][$x]} <br>";
}