Beginner
Image

PHP is a programming language (♦ see DEFmultiplatform and object oriented, created in 1994.

It allows you to create Dynamic Web Pages on a HTTP server.

MYSQL is a relational database management system (RDBMS), regularly associated with PHP.

Code Examples

→ Let's start with very simple codes. The more you progress, page after page, the more sophisticated the scripts will be. However, you must go over 30 to 40 pages per level, before moving on to the next step...

→ In order to evaluate your codes, click on the icon on the left at the bottom of the page (gears), then choose a compiler from the list that will be open in another tab. Finally, test your work.

NOW REPRODUCE AND IMMERSE YOURSELF!

C 0001 - Hello World !

Reproduce this code (please do not copy-paste!).
<!DOCTYPE html>
<html>
<body>
<?php
echo "Hello World !";
?>
</body>
</html>

C 0002 - Values

Reproduce this code (please do not copy-paste!).
<!DOCTYPE html>
<html>
<body>
<?php
$color = "green";
echo "My basket is " . $color . "<br>";
$color2 = "red";
echo "My book is " . $color2 . "<br>";
?>
</body>
</html>

C 0003 - Variables

Reproduce this code (please do not copy-paste!).
<!DOCTYPE html>
<html>
<body>
<?php
$txt = "Hello, see the results !";
$x = 50; $y = 10.5;
echo $txt; echo "<br>";
echo $x; echo "<br>";
echo $y;
?>
</body>
</html>

C 0004 - Numbers

Reproduce this code (please do not copy-paste!).
<!DOCTYPE html>
<html>
<body>
<?php
$x = 50;
$y = 65;
echo $x + $y;
?>
</body>
</html>

C 0005 - Variables

Reproduce this code (please do not copy-paste!).
<!DOCTYPE html>
<html>
<body>
<?php
$txt = "Music";
echo "I like " . $txt . "!";
?>
</body>
</html>

C 0006 - Numbers

Reproduce this code (please do not copy-paste!).
<!DOCTYPE html>
<html>
<body>
<?php
// Determine if this variable has a comma (float)
$x = 20.688;
var_dump(is_float($x));
?>
</body>
</html>

C 0007 - Numbers

Reproduce this code (please do not copy-paste!).
<!DOCTYPE html>
<html>
<body>
<?php
// Determine if this variable is an integer
$x = 253;
var_dump(is_int($x));
echo "<br>";
// Recheck with this variable
$x = 12.28;
var_dump(is_int($x));
?>
</body>
</html>

C 0008 - Numbers

Reproduce this code (please do not copy-paste!).
<!DOCTYPE html>
<html>
<body>
<?php
// Determine if this variable is an integer
$x = 8823;
var_dump(is_int($x));
echo "<br>";
// Recheck with this variable
$x = 63.49;
var_dump(is_int($x));
?>
</body>
</html>
Icon

CHOOSE YOUR COMPILER

Reproduce this code, choosing one of the compilers below (♦ see DEF) (don't copy-paste! It would be too easy). They have the same function, just pick up one according to your preferences.

When you copy your code, replace the existing code (by default) with your own.

Warning ! For some of these compilers, you might have to choose the programming language yourself, in a specific menu which is offered to you. Of course, don't forget to click on RUN !

For some of the compilers marked *, copy the part between the tags <?php and ?>, including of course the tags. Some HTML tags may appear raw, if you do not integrate the code in its entirety within a .php page.

PHP Technical Specifications

Most Recent Versions

Frameworks

Tools And Methodologies

Tests

Info+ (PHP)

Creation
» Creation date: 1994
* Created by Rasmus Lerdorf
* Developed by The PHP Group
* Influenced by C/C ++, Java and PERL
* Written in C

* Cross-platform
* Free license / PHP license

Tools+ (PHP)

Softwares & Frameworks

Practical Cases

In order to train you, we add small programs every week to this section to keep you up to speed.

CASE 1

BASIC LEVEL

Create a form (newsletter)

This small program will allow you to create a form, offering the possibility to a website's visitor to subscribe to a newsletter.

⇒ TRY

CASE 2

INTERMEDIATE LEVEL

Create and manage a database (catalog)

This small kit will allow you to conceive and develop a database managing a catalog's products, then presenting it on a Web page.

⇒ TRY

CASE 3

EXPERT LEVEL

Create a website

Design and develop a complete classical website, including different types of forms.

⇒ TRY

News

Image
2022 (C) Fond of Code tm (official trademark) - Reflex001 / Diego Piccini (da Todi).
All rights reserved. Protected editorial content (www.theethicalweb.com) / INPI France.

About Us...

About Us...
Reflex001

Web
Programming
Development

Company based in
Nice - FRANCE / Montreal - CANADA
Only by appointment...
© 2022 - All rights reserved.
ISSN Registration request in progress...

Main Topics

Main Topics

Legal/Support

Legal/Support
Image
© Copyright 2022 Reflex001. Designed By Art and Earth Networks and Technology / Diego Piccini / Piccini da Todi G&D Studio