Skip to main content

All Questions

Tagged with
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 ...
Ismael Miguel's user avatar
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 ...
Ismael Miguel's user avatar
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 ...
user2177629's user avatar
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-...
user1534664's user avatar