Anda di halaman 1dari 3

PHP is a powerful tool for making dynamic and interactive Web pages.

widely-used, free, and efficient alternative to competitors such as Microsoft's ASP.

A PHP script always starts with <?php and ends with ?>. A PHP script can be placed anywhere in the document.
Expression evaluation - The order of priority in which operations in an expression are evaluated .php - the default extension that the most Web servers use to process PHP script. comma (,) - separate multiple arguments that are passed to function. A loosely typed programming language Does not require data types of variables to be declared integer does not store decimal places. values can be assigned to a Boolean variable are TRUE and FALSE. Modulus (%) - Divides two operands and returns the remainder Global - A variables that is declared outside a function Function - allows you to that a related group of PHP commands as single units. local variable must be declared within the braces of function definition The SWITCH statement controls program flow by executing a specific set of statements, depending on The returned by a conditional expression Default - the value returned by a switch statement expression does not match a case label Break - exit a switch statement Iteration - repetition of a looping statement FOR statement initialization expression executed When the counter variables increments \ - the escape sequence for single quotation mark {} - character sets do you use for complex string syntax strlen - returns the length of the string strrchr - performs a case-sensitive search for specified characters in string and returns a substring from the last occurrence of the specified characters to the end of the string substr_replace - allows you to replace characters within a specified portion of a string str_split - splits each character in a string into an array element levenshtien - returns the number of characters you need to change for two strings to be the same

quantifiers can be used to specify the quantity of a match in a regular expression: Question mark (?) Asterisk (*) Plus sign (+)

|| - character pairs match characters at the beginning and end of a string in a regular expression $_GET - autoglobals can you use to access submitted form values that the information sent is visible to everyone ? - separates the URL from the form data in a GET request + - multiple name/value pairs from the form data in a GET request Web - form redisplay a form with the previously entered values already filled in isset - function can be used to determine if data has been submitted to an all-in-one form Static, dynamic - Web page templates are made of $_REQUEST - contains all of the elements of both the $_GET and $_POST autoglobals sortdir - sort directory entries FILE_APPEND - constants can you use with the file_put_contents() function to append data to the end of the file file_get_contents - reads the contents of the file into string input stream - allows you to read data from a resource such as file

Modes r r+ w w+ a a+ x x+

Description Read only. Starts at the beginning of the file Read/Write. Starts at the beginning of the file Write only. Opens and clears the contents of file; or creates a new file if it doesn't exist Read/Write. Opens and clears the contents of file; or creates a new file if it doesn't exist Append. Opens and writes to the end of the file or creates a new file if it doesn't exist Read/Append. Preserves file content by writing to the end of the file Write only. Creates a new file. Returns FALSE and an error if file already exists Read/Write. Creates a new file. Returns FALSE and an error if file already exists

File pointer - special type of variable that refers to the currently selected character in the file functions can you use to iterate through text file: stream_get_line()

fgets() fread()

feof - returns a value of TRUE when a file pointer reaches the end of a file array_shift - removes the first elements from the beginning of an array array_pop - removes the last elements from the beginning of an array, shortening the array by one element array_unique - removes duplicate elements from an array reset - moves an arrays pointer to the first elements SQL - become the standard data manipulation language among many database management systems DESC - keywords causes the ORDER BY clause to perform a reverse sort of database records mysql_connect - opens a database connection mysql_close - closes a database connection die - function terminates script execution **Additional review on: Comment Proper declaration of Variable Array o Indexes o Elements Arithmetic Operators o Pre Increment o Post Increment Assignment Operators if statement Correct syntax Switch Correct syntax While, do while Correct syntax For loop, For each Correct syntax GET/POST String Manipulation File Handling SQL Query

**Your exam is more on Program Analysis and Syntax correction Gudluck.:))

Anda mungkin juga menyukai