https://github.com/julkwel/me-and-php
php for beginners , write your first php code , build your first application with php.
https://github.com/julkwel/me-and-php
me-and-php my-first-php php php-documentation php-for-beginners php72
Last synced: 4 months ago
JSON representation
php for beginners , write your first php code , build your first application with php.
- Host: GitHub
- URL: https://github.com/julkwel/me-and-php
- Owner: julkwel
- License: mit
- Created: 2020-01-13T14:52:17.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-15T04:48:31.000Z (over 6 years ago)
- Last Synced: 2025-12-30T10:01:57.955Z (6 months ago)
- Topics: me-and-php, my-first-php, php, php-documentation, php-for-beginners, php72
- Homepage: https://julkwel.github.io/me-and-php/
- Size: 20.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Me and php
PHP documentation for beginners, write your first php code, build your first application with php.
### What is php ? 🤔
`- PHP is a server side scripting language which stands for Hypertext Pre-processor and is used to develop static or dynamic websites or Web applications.` 👨💻 👩💻
### What is scripting language ? 🕵️♂️
`- A scripting language is a language that interprets scripts at runtime` 👨🏫
### Why use PHP ? 😏
`- PHP is open source and free, large community document and most web hosting servers support PHP by default ` 🤗
### Installation
`PHP need web server, database and php parser,don't worry there are some excellent all-in-one windows, linux, and MacOs distributions that contain Apache, PHP, MySQL and other applications in a single installation file, e.g. XAMPP pick your own here and follow the installation instruction` [XAMPP SITE](https://www.apachefriends.org/fr/index.html)
### Syntax
`PHP general syntax is :`
```php
```
`And short-open tags look like :`
```php
... ?>
```
### Variables
`PHP variable are denotes fixes with a ` $ `sign , php code always end with ` ; `ex :`
```php
```
### DataTypes
`PHP has a total of eight data types:`
DataTypes | Meanings | Ex
------------ | ------------- | -------------
Integers | Numbers without a decimal point | `$number = 123;`
Float | are floating-point numbers | `$float = 12.3;`
Boolean | Have two possible values `true` or `false` | `$bool = false;`
NULL |Special type has one value `NULL` | `$null = null;`
String | sequences of characters | `$strValues = 'Potato';`
Array | indexed collections values | `$arr = array(0,1,2);`
Objects | instances of classes | `$herbie = new Person();`
Resources | It is the storing of a reference to functions and resources external to PHP | database call