It is not difficult to learn PHP as long as you give it sufficient practice. As with any language, you need to learn the basic building blocks and combine them in a set way to tell the computer to do what you want. We will cover those building blocks in this PHP tutorial.
PHP has fifty keywords. A keyword is simply a word that has a particular meaning to the computer when the program is executed. You will almost certainly not use all of these keywords in a program. Rather, as with any language, you will tend to use around 20% of them 80% of the time, occasionally dipping into the rest for some special purpose. The fifty keywords of PHP are as follows:
abstract (>PHP 5) |
and |
array() |
as |
break |
case |
catch (>PHP 5) |
cfunction (PHP 4) |
class |
clone (>PHP 5) |
const |
continue |
declare |
default |
do |
else |
elseif |
enddeclare |
endfor |
endforeach |
ndif |
endswitch |
endwhile |
extends |
final (>PHP 5) |
for |
foreach |
function |
global |
goto (>PHP 5.3) |
if |
implements (>PHP 5) |
interface (>PHP 5) |
instanceof (>PHP 5) |
namespace (>PHP 5.3) |
new |
old_function (PHP 4) |
or |
private (>PHP 5) |
protected (>PHP 5) |
public (>PHP 5) |
static |
switch |
throw (>PHP 5) |
try (>PHP 5) |
use |
var |
while |
xor |
PHP Tutorials:
Apache Tutorials:
MySQL Tutorials: