The internal file pointer

The internal file pointer, means the place in the file indicating the current location ‚- ie the place in which would start the writing or reading. Most of the functions…

Opening and closing files

All functions use the file as a parameter called charge. „Pointer to the file.” It is a variable that specifies the file open. This is necessary because the script can open multiple files at once and at all work simultaneously.

(więcej…)

Replaces portions of strings

For substitution of entire passages used during the function str_replace (), which takes three parameters: the string to be swapped, a sequence which is to be swapped and a string of excerpts of which will be swapped.

(więcej…)

Pulling pieces of string

Very often there is a need to draw from the variable text only a portion thereof. The easiest way is if you know the length of the exhaust passage and a position in which it is located in a variable. Eg. If the variable contains „1999/10/20” We want to pull out the year.

(więcej…)

Comparing strings

The primary function used to compare strings is strcmp (). As the only 2 parameters it accepts text strings which are to be compared. This function returns 0 if the strings are the same, value greater than zero if the first string is greater than the second value or less than zero if the first string is less than the second. This function is case characters.

(więcej…)

Regular Expressions

PHP supports 2 types of regular expressions: POSIX and those used in Perl. Regular expressions are strings that can be adapted to various other strings. This can be compared to the so-called. wildcardów used for file operations, where the asterisk (* ‚) substitute for any number of any characters or expression *. *’ will match files with any name and any extension.

(więcej…)

Sessions

Session mechanism allows the passing of parameters between pages easily. The variables are stored on the server side and the client kept only the session ID browse around this website. This ID is stored in a cookie or passed through the URL. PHP is able to identify himself or the client computer is turned on cookie mechanism and, if necessary, add a session ID to each URLu and form.

(więcej…)

Comparative Operators

For comparison, you can use the following operators: == Checks for equality ! = Not Equal > = Greater equal <= Less than equal > <Greater, less They return as…

Logical Operators

Operators available in Java are: conjunction operator (and) &, operator alternatives (or) |, operator excludes alternatives ( xor) ^ negation operator!.

Close Menu