I have this little program:
<!DOCTYPE html>
<html>
<body>
<?php
echo "why can not I explode array like 0->1, 1->2, 2->3 ..".'<br>';
?>
</body>
</html>
The output:
why can not I explode array like 0->1, 1->2, 2->3 ..input script var total = [1,2,3,4,5];what I got with \ document.write(total) \ :1,2,3,4,5exploded array var_dump: array(1) { [0]=> string(40) "1,2,3,4,5" } so why does not explode the string in an array?
This says it all!