New Tutorial about PHP 5 Guide for Beginners



PHP is a programming language that has been used widely to make interactive and dynamic web pages. Mastering PHP is a must if a programmer wants to stay update to the development of technology. This article will give a brief explanation about PHP introduction, the basic structures, array functions and coding standards. Developing a web page using PHP will make you able to create a login page, show pictures, conduct surveys, create forums and other beneficial things. PHP is often called as server-sided languages. It is because the program does not execute directly on your computer, but you request that from your computer.
1. PHP Operators
There are many operators that you can use to conduct an operation on values and variables. The operators are divided into some groups such as arithmetic operators, assignment operators, logical operators, string operators, comparison operators, array operators and increment/decrement operators.
·         Arithmetic operators are used when you want to perform arithmetical operations like multiplication, subtraction, and addition.
·         Assignment operators are used to writing a variable from a value.
·         Logical operators are used when you want to merge conditional statements. 
·         String operators are made especially for strings.
The rest of the PHP operator will be used to perform other functions.
2. Control Structures of PHP
Control structures are an important part of programming which gives freedom to the script to perform different reactions depending on the user input or the condition and handle repetitive tasks. To program control structures basic you need to know that control structures are divided into two types, control loops, and conditional statements.
·         Control loops allow the user to perform repetitive task like sending emails and formatting data from database with almost no effort.
·         Conditional statements allow you test something and do some actions according to the result of the test.
Both types of control structures only have a nested statement and it does not need brackets. However, many programmers often use them in order to make the code easier to understand. 
3. Array Functions
The PHP array functions are used to change and access arrays. It has been included in the PHP core so the users do not need to perform an installation. There are so many array functions available in PHP, here are some of the examples.
·         Function array() is used to make an array
·         Function array chunk() is used to create chunks of arrays
·         Function array count values() is used to count an array’s value
·         Function array diff key() is used to compare keys
There are still many other array functions and array constants which you can learn so you will be able to perform many tasks on the program.
A coding standard is needed because many companies often develop different coding types to suit their preference. PHP coding standards are useful so your partner in developing a program will be able to read the code you develop. It will also give you an insight when you want to revise the code that has been abandoned for several times. The coding standard is also useful for industry who want to develop high quality software.

SHARE

About andy

I made this blog just to make about the science that I learned during the study, if there is something wrong please comment below, and do not forget to share, thank you.

    Blogger Comment
    Facebook Comment

0 komentar:

Posting Komentar