XWare Поиск по информационным ресурсам МГУ English Russian
       
       Точная форма слов   О проекте   Сайты   Помощь
Поиск по:old.master.cmc.msu.ru   - Поискать по всем серверам
На этой странице приведены все страницы сервера old.master.cmc.msu.ru ,которые мы индексируем. Показаны документы 3221 - 3240 из 3519.

В начало ] Пред. | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | След.В конец ]

Упорядочить по: URL  |  дате изменения
3221. Constants
PHP Manual . ... A constant is a identifier (name) for a simple value. ... You can define a constant by using the define() -function. ... You can also use the function constant() , to read a constant's value, if you are to obtain the constant's name dynamically. Use get_defined_constants() to get a list of all defined constants. ... If you use an undefined constant, PHP assumes that you mean the name of the constant itself. ... Use the defined() -function if you want to know if a constant is set. ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/language.constants.html -- 7.1 Кб -- 03.02.2002
Похожие документы

3222. Predefined constants
PHP Manual . ... The predefined constants (always available) are: . FILE__ (case-insensitive) . The name of the script file presently being parsed. If used within a file which has been included or required, then the name of the included file is given, and not the name of the parent file. LINE__ (case-insensitive) . ... php function report_error($file, $line, $message) { echo "An error occured in $file on line $line: $message."; } report_error(__FILE__, __LINE__, "Something went wrong!" ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/language.constants.predefined.html -- 6.7 Кб -- 03.02.2002
Похожие документы

3223. Variables from outside PHP
PHP Manual . ... Variables . ... When a form is submitted to a PHP script, any variables from that form will be automatically made available to the script by PHP. ... Simple form variable . form action="foo.php" method="post"> Name: <input type="text" name="username"><br> <input type="submit"> </form> . ... The experienced may note that the actual variable names sent by the browser contains a period rather than an underscore, but PHP converts the period to an underscore automatically. ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/language.variables.external.html -- 12.4 Кб -- 03.02.2002
Похожие документы

3224. Variables
PHP Manual . ... Predefined variables . ... php $foo = 'Bob'; // Assign the value 'Bob' to $foo $bar = &$foo; // Reference $foo via $bar. $bar = "My name is $bar"; // Alter $bar... echo $foo; // $foo is altered too. echo $bar; ?> One important thing to note is that only named variables may be assigned by reference. <?php $foo = 25; $bar = &$foo; // This is a valid assignment. $bar = &(24 * 7); // Invalid; references an unnamed expression. function test() { return 25; } $bar = &test(); // Invalid. ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/language.variables.html -- 6.8 Кб -- 03.02.2002
Похожие документы

3225. Predefined variables
PHP Manual . ... PHP provides a large number of predefined variables to any script which it runs. ... Array of arguments passed to the script. ... An associative array of variables passed to the current script via HTTP cookies. ... An associative array of variables passed to the current script via the HTTP GET method. ... An associative array of variables passed to the current script via the HTTP POST method. ... An associative array of variables passed to the current script from the HTTP server. ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/language.variables.predefined.html -- 17.1 Кб -- 03.02.2002
Похожие документы

3226. Variable scope
... Variables . ... However, within user-defined functions a local function scope is introduced. ... a = 1; /* global scope */ function Test() { echo $a; /* reference to local scope variable */ } Test(); . ... A static variable exists only in a local function scope, but it does not lose its value when program execution leaves this scope. ... To make a useful counting function which will not lose track of the current count, the $a variable is declared static: . ... Variable variables ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/language.variables.scope.html -- 8.3 Кб -- 03.02.2002
Похожие документы

3227. Variable variables
PHP Manual . ... Variables . ... Sometimes it is convenient to be able to have variable variable names. ... In the above example, hello , can be used as the name of a variable by using two dollar signs. i.e. $$a = "world"; . At this point two variables have been defined and stored in the PHP symbol tree: $a with contents "hello" and $hello with contents "world". ... i.e. they both produce: hello world . In order to use variable variables with arrays, you have to resolve an ambiguity problem. ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/language.variables.variable.html -- 5.2 Кб -- 03.02.2002
Похожие документы

3228. Types
... Type Juggling . PHP supports eight primitive types. ... The type of a variable is usually not set by the programmer; rather, it is decided at runtime by PHP depending on the context in which that variable is used. Tip: If you want to check out the type and value of a certain expression , use var_dump() . If you simply want a human-readable representation of the type for debugging, use gettype() . To check for a certain type, do not use gettype() , but use the is_ type functions. ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/language.types.html -- 6.3 Кб -- 03.02.2002
Похожие документы

3229. NULL
. PHP Manual . Prev . Chapter 6. Types . Next . The special NULL value represents that a variable has no value. NULL is the only possible value of type NULL. Note: The null type was introduced in PHP 4 . There is only one value of type NULL , and that is the case-insensitive keyword NULL . $var = NULL; . Prev . Home . Next . Resource . Up . Type Juggling
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/language.types.null.html -- 3.7 Кб -- 03.02.2002
Похожие документы

3230. Type Juggling
... Types . ... If you wish to force a variable to be evaluated as a certain type, see the section on Type casting . ... Type casting in PHP works much as it does in C: the name of the desired type is written in parentheses before the variable which is to be cast. $foo = 10; // $foo is an integer $bar = (float) $foo; // $bar is a float . ... int), (integer) - cast to integer . ... When casting from a scalar or a string variable to an array, the variable will become the first element of the array: . ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/language.types.type-juggling.html -- 9.3 Кб -- 03.02.2002
Похожие документы

3231. Arrays
... An array in PHP is actually an ordered map. ... The array type in PHP is very versatile, so here will be some examples to show you the full power of arrays . // this $a = array ( ' color ' = 'red' , 'taste' = 'sweet' , 'shape' = 'round' , 'name' = 'apple' , 4 // key will be 0 ); // is completely equivalent with $a[' color '] = 'red'; $a['taste'] = 'sweet'; $a['shape'] = 'round'; $a['name'] = 'apple'; $a[] = 4; // key will be 0 $b[] = 'a'; $b[] = 'b'; $b[] = 'c'; // will result in the ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/language.types.array.html -- 19.0 Кб -- 03.02.2002
Похожие документы

3232. Objects
. PHP Manual . Prev . Chapter 6. Types . Next . To initialize an object, you use the new statement to instantiate the object to a variable. <?php class foo { function do_foo() { echo "Doing foo."; } } $bar = new foo; $bar->do_foo(); ?> . For a full discussion, please read the section Classes and Objects . Prev . Home . Next . Arrays . Up . Resource
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/language.types.object.html -- 3.6 Кб -- 03.02.2002
Похожие документы

3233. Resource
PHP Manual . Prev . ... Next . A resource is a special variable, holding a reference to an external resource. Resources are created and used by special functions. ... Note: The resource type was introduced in PHP 4 . ... When this is the case, all resources that were in use for this resource are made free by the garbage collector. ... Note: Persistent database-links are special, they are not destroyed by the gc. See also persistent links . ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/language.types.resource.html -- 4.2 Кб -- 03.02.2002
Похожие документы

3234. Strings
... A string is series of characters. ... The easiest way to specify a simple string is to enclose it in single quotes (the character ' ). ... Note: Unlike the two other syntaxes, variables will not be expanded when they occur in single quoted strings. echo 'this is a simple string'; echo 'You can also have embedded newlines in strings, like this way.'; echo 'Arnold once said: "I\'ll be back"'; // output: .. ... php $str = <<<EOD Example of string spanning multiple lines using heredoc syntax. ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/language.types.string.html -- 20.3 Кб -- 03.02.2002
Похожие документы

3235. Booleans
... Types . ... A boolean expresses a truth value. It can be either TRUE or FALSE . ... To specify a boolean literal, use either the keyword TRUE or FALSE . ... is an operator which returns a boolean if ($action == "show_version") { echo "The version is 1.23"; } // this is not necessary: if ($show_separators == TRUE) { echo "<hr>\n"; } // because you can simply type this: if ($show_separators) { echo "<hr>\n"; } . ... When converting to boolean , the following values are considered FALSE : . ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/language.types.boolean.html -- 6.8 Кб -- 03.02.2002
Похожие документы

3236. Floating point numbers
... Floating point numbers (AKA "floats", "doubles" or "real numbers") can be specified using any of the following syntaxes: . a = 1.234; $a = 1.2e3; $a = 7E-10; 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 (that's 64 bit IEEE format). ... It is quite usual that simple decimal fractions like 0.1 or 0.7 cannot be converted into their internal binary counterparts without a little loss of precision. ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/language.types.float.html -- 4.8 Кб -- 03.02.2002
Похожие документы

3237. Integers
... An integer is a number of the set Z = {.. ... See also: Arbitrary precision integers and Floating point numbers . ... a = 1234; # decimal number $a = -123; # a negative number $a = 0123; # octal number (equivalent to 83 decimal) $a = 0x1A; # hexadecimal number (equivalent to 26 decimal) The size of an integer is platform-dependent, although a maximum value of about two billion is the usual value (that's 32 bits signed). ... There is no integer division operator in PHP. 1/2 yields the float 0.5 . ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/language.types.integer.html -- 10.2 Кб -- 03.02.2002
Похожие документы

3238. Comments
PHP Manual . ... Next . PHP supports 'C', 'C++' and Unix shell-style comments. ... php echo "This is a test"; // This is a one-line c++ style comment /* This is a multi line comment yet another line of comment */ echo "This is yet another test"; echo "One Final Test"; # This is shell-style style comment ?> ... You should be careful not to nest 'C' style comments, which can happen when commenting out large blocks. <?php /* echo "This is a test"; /* This comment will cause a problem */ */ ?> ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/language.basic-syntax.comments.html -- 4.4 Кб -- 03.02.2002
Похожие документы

3239. Basic syntax
... When PHP parses a file, it simply passes the text of the file through until it encounters one of the special tags which tell it to start interpreting the text as PHP code. The parser then executes all the code it finds, up until it runs into a PHP closing tag, which tells the parser to just start passing the text through again. This is the mechanism which allows you to embed PHP code inside HTML: everything outside the PHP tags is left utterly alone, while everything inside is parsed as code. ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/language.basic-syntax.html -- 7.7 Кб -- 03.02.2002
Похожие документы

3240. Instruction separation
. PHP Manual . Prev . Chapter 5. Basic syntax . Next . Instructions are separated the same as in C or Perl - terminate each statement with a semicolon. The closing tag (?>) also implies the end of the statement, so the following are equivalent: . <?php echo "This is a test"; ?> <?php echo "This is a test" ?> . Prev . Home . Next . Basic syntax . Up . Comments
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/language.basic-syntax.instruction-separation.html -- 3.5 Кб -- 03.02.2002
Похожие документы

В начало ] Пред. | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | След.В конец ]

Rambler's Top100 RFBR Яндекс цитирования