w3resource
Java Programming Exercises

PHP Exercises, Practice, Solution

What is PHP?

PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML.

The best way we learn anything is by practice and exercise questions. We have started this section for those (beginner to intermediate) who are familiar with PHP.

Hope, these exercises help you to improve your PHP coding skills. Currently, following sections are available, we are working hard to add more exercises. Happy Coding!

Note: It's fine if you are playing around with PHP codes with the help of an online PHP editor, to enjoy a full-fledged PHP environment (since online editors have several caveats, e.g. embedding PHP within HTML) up and running on your own machine is much better of an option to learn PHP. Please read our installing PHP on Windows and Linux if you are unfamiliar to PHP installation.

List of PHP Exercises :

PHP Challenges :

Note : You may accomplish the same task (solution of the exercises) in various ways, therefore the ways described here are not the only ways to do stuff. Rather, it would be great, if this helps you anyway to choose your own methods.

Popularity of Programming Language
Worldwide, Feb 2019 compared to a year ago:

Rank Change Language Share Trend
1 up arrow Python 26.42 % +5.2%
2 down arrow Java 21.2 % -1.3 %
3 up arrow Javascript 8.21% -0.3 %
4 up arrow C# 7.57 % -0.5 %
5 down arrow PHP 7.34 % -1.2 %
6 C/C++ 6.23 % -0.3 %
7 R 4.13 % -0.1 %
8 Objective-C 3.04% -0.8 %
9 Swift 2.56 % -0.6%
10 Matlab 1.98 % -0.4 %
11 up arrow TypeScript 1.61 % +0.2 %
12 down arrow Ruby 1.54 % -0.2 %
13 down arrow VBA 1.44% -0.0 %
14 up arrow Scala 1.17% -0.1 %
15 up arrow Kotlin 1.15 % +0.3 %
16 down arrow Visual Basic 1.15 % -0.1 %
17 up arrow Go 1.05 % +0.3 %
18 down arrow Perl 0.58 % -0.2 %
19 Rust 0.43 % +0.1 %
20 Lua 0.35 % +0.0 %
21 up arrow Julia 0.3% +0.1 %
22 up arrow Haskell 0.3% +0.0 %
23 down arrow Delphi 0.25% -0.1 %

Source : http://pypl.github.io/PYPL.html

TIOBE Index for February 2019

Feb 2019 Feb 2018 Change Programming Language Ratings Change
1 1 Java 15.876% +0.89%
2 2 C 12.424% +0.57%
3 4 up arrow Python 7.574% +2.41%
4 3 down arrow C++ 7.444% +1.72%
5 6 up arrow Visual Basic .NET 7.095% +3.02%
6 8 up arrow JavaScript 2.848% -0.32%
7 5 down arrow C# 2.846% -1.61%
8 7 down arrow PHP 2.271% -1.15
9 11 up arrow SQL 1.900% -0.46%
10 20 up arrow Objective-C 1.447% +0.32%
11 15 up arrow Assembly language 1.377% -0.46%
12 19 up arrow MATLAB 1.196% -0.03%
13 17 up arrow Perl 1.102% -0.66%
14 9 down arrow Delphi/Object Pascal 1.066% -1.52%
15 13 down arrow R 1.043% -1.04%
16 10 down arrow Ruby 1.037% -1.50%
17 12 down arrow Visual Basic 0.991% -1.19%
18 18 Go 0.960% -0.46%
19 49 up arrow Groovy 0.936% +0.75%
20 16 down arrow Swift 0.918% -0.88%

Source : https://www.tiobe.com/tiobe-index/

List of Exercises with Solutions :

[ Want to contribute to PHP exercises? Send your code (attached with a .zip file) to us at w3resource[at]yahoo[dot]com. Please avoid copyrighted materials.]

List of Exercises with Solutions :



New Content: Composer: Dependency manager for PHP, R Programming