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

Rank Change Language Share Trend
1 up arrow Python 23.59 % +5.5%
2 down arrow Java 22.4 % -0.5 %
3 up arrow Javascript 8.49% +0.2 %
4 down arrow PHP 7.93 % -1.5 %
5 down arrow C# 7.84 % -0.5 %
6 C/C++ 6.28 % -0.8 %
7 up arrow R 4.18 % +0.0 %
8 down arrow Objective-C 3.4% -1.0 %
9 Swift 2.65 % -0.9%
10 Matlab 2.25 % -0.3 %
11 Ruby 1.59 % -0.5 %
12 up arrow TypeScript 1.58 % +0.3 %
13 down arrow VBA 1.42% -0.1 %
14 down arrow Visual Basic 1.2% -0.2 %
15 down arrow Scala 1.2 % -0.1 %
16 up arrow Kotlin 0.97 % +0.5 %
17 Go 0.93 % +0.3 %
18 down arrow Perl 0.78 % -0.1 %
19 down arrow lua 0.42 % -0.1 %
20 up arrow Rust 0.36 % +0.0 %
21 down arrow Haskell 0.3 % -0.1 %
22 down arrow Delphi 0.25% -0.1 %

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

TIOBE Index for July 2018

Jul 2018 Jul 2017 Change Programming Language Ratings Change
1 1 Java 16.139% +2.37%
2 2 C 14.662% +7.34%
3 3 C++ 7.615% +2.04%
4 4 Python 6.361% +2.82%
5 7 up arrow Visual Basic .NET 4.247% +1.20%
6 5 down arrow C# 3.795% +0.28%
7 8 down arrow PHP 2.832% -0.26%
8 8 JavaScript 2.831% +0.22
9 - up arrow SQL 2.334% +2.33%
10 18 up arrow Objective-C 1.453% -0.44%
11 12 Swift 1.412% -0.84%
12 13 up arrow Ruby 1.203% -1.05%
13 14 up arrow Assembly language 1.154% -1.09%
14 15 down arrow R 1.150% -0.95%
15 17 up arrow MATLAB 1.130% -0.88%
16 9 down arrow Delphi/Object Pascal 1.109% -1.38%
17 11 down arrow Perl 1.101% -1.23%
18 10 down arrow Go 0.969% -1.39%
19 16 down arrow Visual Basic 0.885% -1.21%
20 20 PL/SQL 0.704% +0.84%

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 :


ankara escort