PHP is all about magic.That's why it is popular at first place. And its popularity is an accident we'll have to live with for decades,given the amount of PHP code deployed outthere.
But if you are meant to be a CS student,you need a proper multipurpose language.You can do almost anything in python,from 3D games,to complex scientific computation.
PHP is merely a templating language,with enough good syntax to be bearable for advanced programmers.
PHP popularity is quite unfortunate if you ask me.Not because it is easy to start with or because it's a templating language.But because it could have been way better regardless of its execution model.
It could have been cleaner and more elegant if its original author had a clue about how to design languages.
most of PHP syntax is due to Rasmus inability to write a sophisticated parser.
PHP is all about magic.That's why it is popular at first place. And its popularity is an accident we'll have to live with for decades,given the amount of PHP code deployed outthere.
But if you are meant to be a CS student,you need a proper multipurpose language.You can do almost anything in python,from 3D games,to complex scientific computation.
PHP is merely a templating language,with enough good syntax to be bearable for advanced programmers.
PHP popularity is quite unfortunate if you ask me.Not because it is easy to start with or because it's a templating language.But because it could have been way better regardless of its execution model.
It could have been cleaner and more elegant if its original author had a clue about how to design languages.
most of PHP syntax is due to Rasmus inability to write a sophisticated parser.