Good, I have a variable session called api where I have two words stored
echo $_SESSION["api"]['0'];
This would be parabra1
echo $_SESSION["api"]['0'];
This would be word 2
This variable is in a php file and is returned to an ajax function in success: function(data){
From the php file I do echo $_SESSION["api"];
When I go through data with a for, what I need is for you to show me the two words: word1 and word 2, and the result I get is 'p''a''l''a' etc ..
for(var i = 0; i < data.length; i++){
alert(data[i])
}
What am I doing wrong? Thank you very much.