Hello there.
I have set a javascript array a[], each array element holds a list of training centres i.e.
a[0] = leeds-edinburgh-leeds-leeds.
i want to split these centres into javascript variuables i.e.
echo "<script>
var aims_array = a[$i].split("-");
</script>
";
but for some unknown reaseon when i add this code to my .php script i get random 0's printed to the screen
i.e.
00000000000000000000
00000000
000000000000000
00
0000000000000
000000
i'm not printing anything to the screen so why should this happen?
Thanks, Chris.
Submit Your Article
Forum Rules

Reply With Quote
