I have a javascript script which obtains a lot of data
about 20 variables, 2 arrays with hundreds of or even more than 1000 elements.
I want to pass these values to a php server and let php server write them to files(not sql database) on the server

I know I need to use ajax, or json but I'm new to javascript and time is a bit urgent, I hope I can finish this task asap

are there any good articles, examples on this?