All Questions
4 questions
4
votes
1
answer
139
views
Polyglot function to sum all the numbers in an array in Javascript and PHP
This, again, is a very simple code.
This is my 2nd polyglot question and this time I've tried to do something that I miss sometimes in Javascript.
PHP has the ...
6
votes
1
answer
2k
views
Polyglot array_extend() function for Javascript and PHP
This is a polyglot function I've made out of fun.
The goal is to grab n arrays (or Javascript Objects) and 'extend' them in ...
1
vote
1
answer
983
views
Turning multiple PHP arrays into one array ready for conversion to Javascript
I am creating a multiple choice quiz game with PHP and Javascript. Questions can have 2 to 6 answers. I have been using the PHP queries in the code below to get arrays of the questions of a quiz, and ...
2
votes
3
answers
316
views
Japanese rehearsal system
At the moment I am trying to create a Japanese rehearsal system, and it's working perfectly. However, I am not pleased with the code. Basically I had a .txt file called lesson1.txt. I saved it as UTF-...