ciao a tutti...
ho questo frammento di codice
vorrei che il valore della variabile $value['products_options_values_name'] sia conservato a qualche parte... ho provato come potrete vedere a metterlo in sessione, creando (non so neanche se si può fare) una sessione come array.... non mi da errore, solo che se eseguo il for per far uscire i dati dalla sessione mi esce solo l'ultimo valore...Codice PHP:
<?php
$_SESSION['attributo'] = array();
foreach ($product['attributes'] as $option => $value) {
?>
[*]
<?php /* attributi */
echo $value['products_options_name'] . TEXT_OPTION_DIVIDER . nl2br($value['products_options_values_name']);
$_SESSION['attributo'][] = $value['products_options_values_name'];
?>
<?php
}
come potrei fare?
grazie ancitipatamente..