Might seem like a stupid question, but I have been using PHP for years. I was wondering, can C++ be used to replace that?

I know it's more powerful, and would allow me to do ALOT more. Would it be faster, and more secure than PHP?

I'm not at the stage to develop much with C++, still learning, but asking in advanced.