Professional Documents
Culture Documents
+ y - y / y 0 y 1 y
+ y - y / y 0 y 1 y
ini file for changing php configuring, you need to restart the server if you made a
change
Short open tags (considered bad form) :: <? ?> and <?= ?>
Variable Name:
1. Start with a $
4. No space
5. Case-sensitive
<?php
$variable_Here
?>
<?php
?>
Array_Functions:
In_array(element, $array) // find how many elements in the array, return T/F
Boolean:
Variable Function
Isset($var)
Unset $var
Unset($var)
Check if $var empty or value 0 or string “0”
Empty($var)
// settype($var2, “string”)
Is_array($var1);
…bool(…)
…float(…)
…int(…)
…null(…)
…numeric(…)
…string(…)
Define(“MAX_WIDTH”, 980);
Looping
statement;
statement;
:: continue ::
if($val = 5){
POINTER:::::::::::::::::::::)
next($array)
reset($array)
FUNCTION::::::
statement;
global $var