I will admit it: I am a little scared to write and publish this post. Sharing opinions on programming languages tends to invite strong opinions and even conflict. Allow me to explain.
That said, I think it’s important not to shy away from these discussions. It takes a significant amount of time and effort to learn a programming language well, so we do need to determine if it is worth our time to go beyond the basics when learning a new technical skill. In this article, I will attempt to give you the background information you need and discuss the trends I am seeing so that you can make an informed decision about whether or not you should learn PHP.
What is PHP?
Once you have an understanding of how to structure a webpage with HTML and add some basic styling with CSS, you’re ready to learn PHP. When you’re starting out, you’ll learn how to embed PHP code into HTML and how the PHP programming language works with HTML.
Reasons to Learn PHP
The two major reasons why PHP is a good programming language to learn is that it is one of the easier languages for first-time programmers to learn and the demand for PHP developers is currently high. There are ample opportunities at both stable companies and freelance gigs for PHP developers.
PHP Is Currently in Demand
If you know PHP, there are currently a number of full-time and freelance gigs that will be available to you. PHP is used by businesses, universities, small business owners, and bloggers. As I mentioned above, PHP currently powers up to 80% of the web, and all of that server-side code needs to be maintained.
If you crave a flexible lifestyle and would prefer not to work for a company, you can easily carve our a freelance career for yourself customizing WordPress and Drupal websites for individuals, bloggers, and small business owners. There is tremendous demand for these types of freelance jobs in our gig economy, and you can find opportunities through places like Upwork, Fivver, Craigslist, and countless other job boards.
PHP Is a Good Choice for First-Time Programmers
If you have no prior programming experience, then PHP is a good first language to learn. It does require you to install and set up your own web server, but a decent course on PHP will walk you through that process.
As you learn PHP, you will learn all about how the web works on the back end. As an aspiring web developer, it is immensely helpful for you to know how all the different parts of the web work together, and learning PHP will give you that knowledge. Another skill that you will likely learn with PHP is MySQL, which is an extremely popular database. Developers who know how to write proper SQL queries to retrieve information from databases are continually in demand.
Reasons to Learn A Different Programming Language
I continue to think that PHP is an excellent first programming language to learn, but there are a couple of trends that you should take into consideration before diving in.
PHP May Be on the Decline in Some Parts of the U.S.
PHP Gigs May Not Pay As Well
Where You Can Learn PHP
The best course I have found to date on PHP is Edwin Diaz’s PHP for Beginners. In all fairness, the course is so robust that I haven’t even finished it yet! It is a monster, 36-hour course that starts out with PHP basics and progresses to SQL database programming and building a custom content management system from scratch. In my current role, I work with PHP files on our web development server and credit Edwin’s course for helping me further solidify the basics of the PHP programming. I have also attempted to learn PHP from books but quickly got bored with the number of forms that I had to type and re-type. Edwin’s class is much more exciting, and at the end of it, you will know how to build a custom content management system for bloggers and be able to customize WordPress and Drupal websites. You can check the course out now or wait a couple of months until I publish my big review on Edwin’s PHP course that is available on Udemy.
I hope this article has helped you make an informed decision about whether you should start learning PHP. If you have any questions, please feel free to contact me or to leave a comment, and I will get back to you shortly.
Your article was great. I have been doing freelance digital marketing for the last two years, and I’ve considered learning a programming language to give a greater competitive edge.
When I’ve started looking into programming languages, I’ve always been confused about what’s what. It’s hard to know what’s most important, what’s in the highest demand, and what will be most stable because the technology space is changing so fast.
You’re article and the stats you included really help me to think more about if I want to learn a programming language at all, and which to consider. You mentioned Python, but I’m unsure how popular the use of the programming language is. Do you have any ideas on that? Is it a high demand programming language?
Thank you — I’m glad you liked this post and find it helpful. To answer your question, yes, Python is definitely in high demand, and we’re seeing it starting to surpass PHP. It is a great all-purpose language that can handle anything from web development to server automation to data science. If you’re in an area of marketing that is data-driven, Python would be a great language for you to learn. Like PHP, it’s an ideal programming language to start with because its syntax is closer to English compared to other programming languages.
If you’re looking for a course on Python to help you get started, I’m more than happy to help. I hope you enjoy learning Python and that it serves you well in your career.
This was an extremely informative article – thanks for writing so clearly and concisely! I have a question: My 11 year old seems to have a good head for maths and computers. We’re thinking about his learning a programming language – would you recommend he learn PHP or Python? Or perhaps there is another language more geared towards kids that will help them build a solid programming foundation in 10 years’ time?
Thanks, and all the best,
Thanks for the kind words, Norman! I’m glad you found this article informative.
To answer your question, Python is an excellent language for an 11-year-old to learn. It’s a very popular teaching language because the syntax is closer to English than most programming languages. Python is also growing in popularity, which is a trend that I expect to continue, considering how often it is used in data science, a field that is becoming increasingly important. There are some great books out there specifically on Python for Kids, so you can check those out. There is also a platform called Scratch, which teaches kids the basics of programming.
I hope this helps, but if you need additional suggestions, please feel free to get in touch with me.
PHP is very much a ‘business’ sort of language in that there is a lot of setup / framework that comes along with it, and it’s really geared towards building website backends – quite boring stuff, in other words.
To foster an interest in programming and mathematics it’s far more important that one focuses on learning algorithms and data structures (part of algorithms) – those are the fun and rewarding parts of programming that’ll keep you interested and plant the seeds of curiosity.
As such, I would strongly recommend against something like PHP if your focus is on intellectual enrichment and not (immediately) on getting a job. He should be learning something like C or Java. Neither of these are beyond a child – I learned C when I was about 14, after learning BASIC. Then, after a few months tackling challenges like those on Hackerrank, do a (free) course like “NAND to Tetris” to really pique his interest in computers.
I normally wouldn’t be so engaged by any articles pertaining to this subject, but yours grabbed my attention. It was like a great dessert crying out to me to eat it. This is good content.
Thanks so much. I’m glad you’re finding helpful articles on the site. If there are any other topics that would be helpful, please feel free to let me know: firstname.lastname@example.org
I believe that programming languages are tools to get things done, and I really do not understand the way of thinking of the developers who seem to get offended if someone said something about a programming language, at the end one should choose the right tool because it is the tool that gets the job, this specific job, done. Not because I like it and have its logo stickers all over my laptop. And at the end, every programming language one learns opens more opportunities for potential work.
I agree with you that programming languages are tools and it’s a matter of picking the right tool for the job. That said, a number of web developers and software engineers have strong opinions on these topics, so while I try to navigate these online conversations with some care, I invariably ruffle some feathers when I take a stand. Thanks for your comment, and best wishes.
Whenever I see a new language appear, I have to ask myself, “What does this language really do better than an existing language?” The answer often seems to be, “It gratifies the ego of the person who developed it.”
I completely agree that PHP is an excellent tool for freelancers and free spirits. I’m going to have to check out node.js and Python. Thanks again!
I feel you are simplifying the ecosystem in which php holds value. With frameworks live Laravel and new services like Laravel Vapor you can build massively scalable and incredibly performant and beautifully architected PHP applications that solve incredibly complex business challenges.
I agree: PHP is a perfectly valid language for web development, and using it with Laravel can be applied to many business solutions. But I would be remiss if I didn’t discuss the trend that I see, which is that PHP is becoming less relevant. I am also seeing salaries for PHP skills decrease compared to other technologies like C#, node.js, etc. That said, this is the trend that I see where I live. It could be different in other geographic locations.
I also want to encourage everyone to think about programming languages and frameworks as tools rather than get involved in language wars. At the end of the day, developers need to evaluate whether or not a specific language or a tool will help them complete a project or solve a problem. If PHP can do that and you know the language, then by all means use it.
Since there are so many languages, frameworks, and tools out there, however, I do think that web developers need to be strategic about which skills to learn and focus on.