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, Oct 2018 compared to a year ago:

Rank Change Language Share Trend
1 up arrow Python 24.72 % +5.4%
2 down arrow Java 22.01 % -0.7 %
3 up arrow Javascript 8.4% +0.1 %
4 up arrow C# 7.71 % -1.4 %
5 down arrow PHP 7.42 % -1.6 %
6 C/C++ 6.32 % -0.5 %
7 R 4.11 % -0.1 %
8 Objective-C 3.29% -0.9 %
9 Swift 2.69 % -0.8%
10 Matlab 2.08 % -0.3 %
11 Ruby 1.63 % -0.4 %
12 up arrow TypeScript 1.54 % +0.1 %
13 down arrow VBA 1.48% -0.0 %
14 Scala 1.22% -0.2 %
15 Visual Basic 1.14 % -0.2 %
16 up arrow Kotlin 1.04 % +0.3 %
17 up arrow Go 0.96 % +0.3 %
18 down arrow Perl 0.65 % -0.2 %
19 lua 0.39 % +0.0 %
20 up arrow Rust 0.38 % +0.0 %
21 up arrow Haskell 0.31 % -0.0 %
22 down arrow Delphi 0.27% +0.1 %

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

TIOBE Index for October 2018

Oct 2018 Oct 2017 Change Programming Language Ratings Change
1 1 Java 17.801% +5.37%
2 2 C 15.376% +7.00%
3 3 C++ 7.593% +2.59%
4 5 up arrow Python 7.394% +1.83%
5 8 up arrow Visual Basic .NET 5.884% +3.15%
6 4 down arrow C# 3.485% -0.37%
7 7 PHP 2.794% +0.00%
8 6 down arrow JavaScript 2.280% -0.73
9 - up arrow SQL 2.038% +2.04%
10 16 up arrow Swift 1.500% -0.17%
11 13 up arrow MATLAB 1.317% -0.56%
12 20 up arrow Go 1.253% -0.10%
13 9 down arrow Assembly language 1.245% -1.13%
14 15 up arrow R 1.214% -0.47%
15 17 up arrow Objective-C 1.202% -0.31%
16 12 down arrow Perl 1.168% -0.80%
17 11 down arrow Delphi/Object Pascal 1.154% -1.03%
18 10 down arrow Ruby 1.108% -1.22%
19 19 PL/SQL 0.779% -0.63%
20 18 down arrow Visual Basic 0.652% -0.77%

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 :