Visto che è un portale per la prenotazione di strutture ricettive metterei solo l'id della struttura il nome e le stelle.
Qualcosa di simile a questo?
Codice PHP:$wishList = array
(
array (
id => 22
nome => Hotel Bello
stelle => 4
),
array (
id => 22
nome => Hotel Bello
stelle => 4
)
);
$listJSON = json_encode($wishList);
setcookie("wishlist", $listJSON);

Rispondi quotando