




























































































Studia grazie alle numerose risorse presenti su Docsity
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Questa pagina non è visibile nell’anteprima
Non perderti parti importanti!





























































































Install Apache (or IIS) on your own server, install PHP, and MySQL Or find a web hosting plan with PHP and MySQL support
PHP Example
NOTE: The file must have a .php extension. If the file has a .html extension, the PHP code will not be executed.
boolean integer float (floating-point number) string
resource
array object
The size of a float is platform-dependent, although a maximum of ~1.8e308 with a precision of roughly 14 decimal digits is a common value (the 64 bit IEEE format).
The special NULL value represents a variable with no value. NULL is the only possible value of type NULL. A variable is considered to be null if: the constant NULL has been assigned to it it has not been set to any value yet. it has been unset(). The function is_null() allows evaluating whether the value of a variable is NULL
A resource is a special variable, holding a reference to an external resource. Resources are created and used by special functions. For instance, dbase_open() opens a database.
Complex Curly Syntax Any scalar variable, array variable or object property with a string representation can be included via this syntax. Simply write the expression the same way as it would appear outside the string, and then wrap it in { and }. Since { can not be escaped, this syntax will only be recognized when the $ immediately follows the {. Use {$ to get a literal {$. PHP uses the same escape sequences (“\”) as in C++
Complex Curly Syntax (example) width}00 centimeters broad."; // Works echo "This works: {$arr[4][3]}"; ?>
Characters within strings may be accessed and modified using square array brackets (or also braces)