Why did I choose MEAN stack over PHP?

When I first started developing the Phonegap app I had to make a fast prototype, and for server-side programming I decided on using PHP. It worked perfectly, i hosted the PHP scripts on a remote server and did all the requests from my app. The drawback came after the first protoytype, when I realized that having too many languages for my app and an old language for my server was going to give me some limitations (and tons of headaches).

That’s when I decided on learning MEAN stack. MEAN stack stands for: MongoDB, ExpressJS, AngularJS and NodeJS. The amazing thing about this combination of frameworks is that they all work on the same language: Javascript (Except mongoDB). So there is no limitation at the point of altering and passing data from the server to the Front-end of the app.