The array below could return in various ways (with more or less elements):
array(4) { ["imagen"]=> string(11) "bánner.jpg" ["alt"]=> string(5) "muaka" ["destino"]=> string(7) "op_tipo" ["tipo"]=> string(13) "obj_connected" }
array(3) { ["imagen"]=> string(12) "Logo_RGB.jpg" ["alt"]=> string(7) "test123" ["destino"]=> string(11) "op_list_gen" }
Im saving this in a variable in PHP called: $filtrosBanner;
. How can I get the values from this in jQuery?
I have saved the variable in jQuery as follows:
var opDestino = "<?php echo $filtrosBanner; ?>";
This returns an array but im not sure how to access each value individually.