PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
myarray is an object here (check the page's source), and when you add it to 'myarray=' string later it results in something like 'myarray=Object' (put a breakpoint or alert into the 'send' function to see) which json_decode cannot parse (add var_dump($_REQUEST['myarray']) before decoding to see). You need to encode your object to json before sending if your /ajax/arrayclean.php script expects json
myarray is an object here (check the page's source), and when you add it to 'myarray=' string later it results in something like 'myarray=Object' (put a breakpoint or alert into the 'send' function to see) which json_decode cannot parse (add var_dump($_REQUEST['myarray']) before decoding to see). You need to encode your object to json before sending if your /ajax/arrayclean.php script expects json