A repository for showcasing my knowledge of the PHP programming language, and continuing to learn the language.

Overview

/PHP-logo.svg

Learning PHP (programming language)

I know very little about PHP. This document will list all my knowledge of the PHP programming language.

Basic syntax in PHP

PHP requires the use of a <? operator for the entire program

<?
// Source code goes here
?>

However, it is preferred to use the shebang:

<?php
// Source code goes here
?>

Comments in PHP

Comments in PHP are identical to comments in C, JavaScript, CSS, C#, C++, etc..

<?php
// This is a comment
/* This is 
a multi-line
comment */
/* This is
* also a 
* multi-line
* comment */
?>

Note that comments can't go before or after the <? & ?> operators.

Hello World in PHP

I am not sure whether echo or print should be used.

<?php
echo "Hello world"
print "Hello World"
?>

/!\ This example has not been tested yet, and may not work


Break keyword in PHP

<?
break;
?>

To this day, I am still not entirely sure what the break keyword does, but most languages support it.

/!\ This example has not been tested yet, and may not work

Other knowledge of the PHP programming language

  1. PHP is a semicolon language, but not a curly bracket language

  2. PHP can be embedded into HTML

  3. Variants of PHP structures exist, such as Mustache

  4. PHP uses the .php file extension

  5. PHP is a recursive acronym that stands for PHP Hypertext Preprocessor

  6. PHP uses an elephant as its logo, which is called a elePHPant

  7. PHP can be used as an alternative to JavaScript

  8. PHP is used in many websites, notable ones include Wikipedia, MediaWiki (which is the basis of Wikipedia, and thousands of Wiki sites) and more

  9. PHP 6 became Raku

  10. No other knowledge of the PHP programming language


You might also like...
Simple game server with php without socket programming. Uses the Api request post(json).

QMA server Simple game server with php without socket programming. Uses the Api request post(json). What does this code do? Register the user as a gue

A simple functional programming library for PHP
A simple functional programming library for PHP

bingo-functional A simple functional programming library for PHP. Requirement(s) PHP 7 or higher Rationale PHP, a language not commonly associated wit

Small library providing some functional programming tools for PHP, based on Rambda

Functional library for PHP. Features: set of useful functions helpful in functional programming all functions are automatically curried every array ca

Learn how to run WordPress with Docker. Read about our experiences and start off with an easy boilerplate.
Learn how to run WordPress with Docker. Read about our experiences and start off with an easy boilerplate.

Hi! We're Dan and Jay. We're a two person team with a passion for open source products. We created Server Side Up to help share what we learn. Find us

Learn to apply best practices as a PHP backend developer

PHP eCommerce Project Here are the things that this repo will cover: Object oriented programming principles and best practices Object oriented session

Learning design patterns by implementing them in various programming languages.

design-patterns Learning design patterns by implementing them in various programming languages. Creational design patterns Creational design patterns

A Finite State Machine System based on Chapter 3.1 of Game Programming Gems 1 by Eric Dybsand

A Finite State Machine System based on Chapter 3.1 of Game Programming Gems 1 by Eric Dybsand,Written by Roberto Cezar Bianchini, July 2010 ported to php by MrFerrys.

Utilities for concurrent programming of PocketMine-MP plugins.
Utilities for concurrent programming of PocketMine-MP plugins.

Utilities for concurrent programming of PocketMine-MP plugins Overview Plugin that implements the pthreads channels and in the future, promises (which

A simple place to learn XSS
A simple place to learn XSS

XSSPlayground A simple place to learn XSS. Made for myself to learn and to help others (please do use!) Disclaimer This is a works in progress and wil

Comments
  • [Knowledge dump] Some missing initial knowledge

    [Knowledge dump] Some missing initial knowledge


    [Knowledge dump] Some missing initial knowledge

    I forgot to mention a few things originally:

    • Most of my knowledge of HTML5, CSS, JavaScript, and PHP has come from W3Schools

    • The $string operator

    • Integers

    • Booleans

    • return keyword

    • No other entries to list


    documentation enhancement good first issue 
    opened by seanpm2001 0
Owner
Sean P. Myrick V19.1.7.2
I'm an experienced programmer, with the intent to make the world a much better place, and protect freedoms of the Internet. I am skilled in Python, and web dev.
Sean P. Myrick V19.1.7.2
This is a plugin written in PHP programming language and running on the PocketMine platform that works stably on the API 3.25.0 platform

This is a plugin written in PHP programming language and running on the PocketMine platform that works stably on the API 3.25.0 platform. It allows you to hear the sound

Thành Nhân 10 Sep 27, 2022
This example shows how to use Anychart library with the PHP programming language, Laravel framework and MySQL database.

PHP basic template This example shows how to use Anychart library with the PHP programming language, Laravel framework and MySQL database. Running To

AnyChart Integrations and Templates 23 Jul 17, 2022
Bearer client for the PHP programming language

Bearer PHP Client This is the official PHP client for interacting with Bearer.sh. Installation Install the package by running: composer require bearer

Bearer 9 Oct 31, 2022
All about docker projects either from dockerfile or compose. Anyway, here the project is in the form of a service, for the programming language I will make it later

Docker Project by ItsArul Hey, yo guys okay, this time I made some projects from Docker. Anyway, this project is open source, for example, if you want

Kiyo 10 Nov 4, 2022
The Easiest way to start using PHP CS Fixer and PHP_CodeSniffer with 0-knowledge

The Easiest Way to Use Any Coding Standard Features Blazing fast Parallel run Use PHP_CodeSniffer || PHP-CS-Fixer - anything you like 2nd run under fe

null 1.1k Jan 6, 2023
Cheatsheet for some Php knowledge you will frequently encounter in modern projects.

Cheatsheet for some Php knowledge you will frequently encounter in modern projects.

Arnaud Becher 1.1k Jan 2, 2023
🐋 This project aims to broaden knowledge of system administration by using Docker: virtualizing several Docker images, creating them in a new personal virtual machine.

?? This project aims to broaden knowledge of system administration by using Docker: virtualizing several Docker images, creating them in a new personal virtual machine.

Anton Kliek 1 Jan 26, 2022
🏆 Learn You PHP! - An introduction to PHP's core features: i/o, http, arrays, exceptions and so on.

Learn You PHP! The very first PHP School workshop. A revolutionary new way to learn PHP Bring your imagination to life in an open learning eco-system

PHP School 311 Dec 30, 2022