About PHP
Welcome to Tutorials 4 PHP ,
This site is for me and only me (Tarek), you can still come and read it and even use the codes but take note that I’m not responsible of any damages that my codes may cause … I’m not a security expert nor a PHP expert ; I’m still learning .
Back to PHP TUTORIALS…
PHP’s syntax is derived from many languages—predominantly the C language, but Perl has also had a lot of influence on its syntax.
With the latest object-oriented additions, more Java-like syntax is creeping in as well. Despite incorporating elements of so many other languages, PHP’s syntax remains simple and easy to understand.
PHP is primarily designed as a text processor.
PHP code can be inserted into a text file using tags; the interpreter will then output any text outside the tags as-is, and execute the code that is between the php tags.
Every PHP script is made up of statements, like function calls, variable assignments, data output, directives, and so on. Except in very few cases, each of these instructionsmust be terminated—just like in C, Perl and JavaScript—with a semicolon.
This requirement is not always strict … for example, the last instruction before a closing tag does not require a semicolon; however, these should be primarily considered quirks in the parser’s logic, and you should always terminate your instructions with
a semicolon:
-
someinstruction();
-
$variable = ’value’;
If you have any question feel free to ask .
Good Luck .
Tarek .