Поиск по:old.hcs.cmc.msu.ru -
Поискать по всем серверам
На этой странице приведены все страницы сервера old.hcs.cmc.msu.ru ,которые мы индексируем. Показаны документы 3101 - 3120 из 3520.
Упорядочить по:
URL
|
дате изменения
3101. range
... array range ( mixed low, mixed high) . ... foreach(range(0, 9) as $number) { echo $number; } foreach(range('a', 'z') as $letter) { echo $letter; } foreach(range('z', 'a') as $letter) { echo $letter; } . ... Example 2. ... array_reverse can be used to flip the order of a range foreach(array_reverse(range(0,9)) as $number) { echo $number; } # array_map() can be used to turn integers into characters using chr() foreach(array_map('chr', range(ord('a'),ord('z'))) as $character) { echo $character; } . ...
[
Сохраненная копия
]
Ссылки http://old.hcs.cmc.msu.ru/php/function.range.html -- 4.9 Кб -- 03.02.2002
Похожие документы
Похожие документы
3102. reset
. PHP Manual . Prev . Next . (PHP 3 <= 3.0.18, PHP 4 >= 4.0.0) reset -- Set the internal pointer of an array to its first element . mixed reset ( array array) . reset() rewinds array 's internal pointer to the first element. reset() returns the value of the first array element. See also current() , each() , next() , and prev() . Prev . Home . Next . range . Up . rsort
[
Сохраненная копия
]
Ссылки http://old.hcs.cmc.msu.ru/php/function.reset.html -- 3.7 Кб -- 03.02.2002
Похожие документы
Похожие документы
3103. pos
. PHP Manual . Prev . Next . (PHP 3 <= 3.0.18, PHP 4 >= 4.0.0) pos -- Get the current element from an array . mixed pos ( array array) . This is an alias for current() . See also end() , next() , prev() , and reset() . Prev . Home . Next . next . Up . prev
[
Сохраненная копия
]
Ссылки http://old.hcs.cmc.msu.ru/php/function.pos.html -- 3.5 Кб -- 03.02.2002
Похожие документы
Похожие документы
3104. prev
PHP Manual . Prev . Next . PHP 3 <= 3.0.18, PHP 4 >= 4.0.0) prev -- Rewind the internal array pointer . mixed prev ( array array) . Returns the array element in the previous place that's pointed by the internal array pointer, or FALSE if there are no more elements. ... To properly traverse an array which may contain empty elements see the each() function. prev() behaves just like next() , except it rewinds the internal array pointer one place instead of advancing it. ...
[
Сохраненная копия
]
Ссылки http://old.hcs.cmc.msu.ru/php/function.prev.html -- 4.3 Кб -- 03.02.2002
Похожие документы
Похожие документы
3105. next
... Prev . ... PHP 3 <= 3.0.18, PHP 4 >= 4.0.0) next -- Advance the internal array pointer of an array . ... Returns the array element in the next place that's pointed by the internal array pointer, or FALSE if there are no more elements. next() behaves like current() , with one difference. ... That means it returns the next array element and advances the internal array pointer by one. If advancing the internal array pointer results in going beyond the end of the element list, next() returns FALSE . ...
[
Сохраненная копия
]
Ссылки http://old.hcs.cmc.msu.ru/php/function.next.html -- 4.7 Кб -- 03.02.2002
Похожие документы
Похожие документы
3106. natcasesort
... Next . PHP 4 >= 4.0.0) natcasesort -- Sort an array using a case insensitive "natural order" algorithm . void natcasesort ( array array) . ... This is described as a "natural ordering". natcasesort() is a case insensitive version of natsort() . See natsort() for an example of the difference between this algorithm and the regular computer string sorting algorithms. ... See also sort() , natsort() , strnatcmp() , and strnatcasecmp() . ... natsort . ... next ...
[
Сохраненная копия
]
Ссылки http://old.hcs.cmc.msu.ru/php/function.natcasesort.html -- 4.2 Кб -- 03.02.2002
Похожие документы
Похожие документы
3107. list
PHP Manual . Prev . Next . unknown) list -- Assign variables as if they were an array . void list ( mixed .. ... Example 1. list() example . table> <tr> <th>Employee name</th> <th>Salary</th> </tr> <?php $result = mysql_query ("SELECT id, name, salary FROM employees",$conn); while (list ($id, $name, $salary) = mysql_fetch_row ($result)) { print (" <tr>\n". " <td><a href=\"info.php3?id=$id\">$name</a></td>\n". " <td>$salary</td>\n". " </tr>\n"); } ?> </table> . ...
[
Сохраненная копия
]
Ссылки http://old.hcs.cmc.msu.ru/php/function.list.html -- 4.3 Кб -- 03.02.2002
Похожие документы
Похожие документы
3108. natsort
... PHP 4 >= 4.0.0) natsort -- Sort an array using a "natural order" algorithm . void natsort ( array array) . ... An example of the difference between this algorithm and the regular computer string sorting algorithms (used in sort() ) can be seen below: . Example 1. natsort() example . array1 = $array2 = array ("img12.png", "img10.png", "img2.png", "img1.png"); sort($array1); echo "Standard sorting\n"; print_r($array1); natsort($array2); echo "\nNatural order sorting\n"; print_r($array2); . ...
[
Сохраненная копия
]
Ссылки http://old.hcs.cmc.msu.ru/php/function.natsort.html -- 4.9 Кб -- 03.02.2002
Похожие документы
Похожие документы
3109. krsort
... 3.0.13 - 3.0.18 only, PHP 4 >= 4.0.0) krsort -- Sort an array by key in reverse order . int krsort ( array array [, int sort_flags]) . ... Example 1. krsort() example . fruits = array ("d"=>"lemon", "a"=>"orange", "b"=>"banana", "c"=>"apple"); krsort ($fruits); reset ($fruits); while (list ($key, $val) = each ($fruits)) { echo "$key = $val\n"; } . ... d = lemon c = apple b = banana a = orange . ... See also asort() , arsort() , ksort() , sort() , natsort() , and rsort() . ... key . ... ksort ...
[
Сохраненная копия
]
Ссылки http://old.hcs.cmc.msu.ru/php/function.krsort.html -- 4.7 Кб -- 03.02.2002
Похожие документы
Похожие документы
3110. ksort
PHP Manual . ... PHP 3 <= 3.0.18, PHP 4 >= 4.0.0) ksort -- Sort an array by key . int ksort ( array array [, int sort_flags]) . Sorts an array by key, maintaining key to data correlations. ... Example 1. ksort() example . fruits = array ("d"=>"lemon", "a"=>"orange", "b"=>"banana", "c"=>"apple"); ksort ($fruits); reset ($fruits); while (list ($key, $val) = each ($fruits)) { echo "$key = $val\n"; } . This example would display: . a = orange b = banana c = apple d = lemon . ...
[
Сохраненная копия
]
Ссылки http://old.hcs.cmc.msu.ru/php/function.ksort.html -- 4.9 Кб -- 03.02.2002
Похожие документы
Похожие документы
3111. key
. PHP Manual . Prev . Next . (PHP 3 <= 3.0.18, PHP 4 >= 4.0.0) key -- Fetch a key from an associative array . mixed key ( array array) . key() returns the index element of the current array position. See also current() and next() . Prev . Home . Next . array_search . Up . krsort
[
Сохраненная копия
]
Ссылки http://old.hcs.cmc.msu.ru/php/function.key.html -- 3.4 Кб -- 03.02.2002
Похожие документы
Похожие документы
3112. array_search
... PHP 4 >= 4.0.5) array_search -- Searches the array for a given value and returns the corresponding key if successful . mixed array_search ( mixed needle, array haystack [, bool strict]) . Searches haystack for needle and returns the key if it is found in the array, FALSE otherwise. ... This function may return FALSE , but may also return a value evaluating to FALSE in a simple if statement. Please use the === operator for testing the return value of this function. See also in_array() . ...
[
Сохраненная копия
]
Ссылки http://old.hcs.cmc.msu.ru/php/function.array-search.html -- 4.3 Кб -- 03.02.2002
Похожие документы
Похожие документы
3113. in_array
... PHP 4 >= 4.0.0) in_array -- Return TRUE if a value exists in an array . bool in_array ( mixed needle, array haystack [, bool strict]) . Searches haystack for needle and returns TRUE if it is found in the array, FALSE otherwise. ... Example 1. in_array() example . ... Example 2. in_array() with strict example . php $a = array('1.10', 12.4, 1.13); if (in_array('12.4', $a, TRUE)) echo "'12.4' found with strict check\n"; if (in_array(1.13, $a, TRUE)) echo "1.13 found with strict check\n"; ?> ...
[
Сохраненная копия
]
Ссылки http://old.hcs.cmc.msu.ru/php/function.in-array.html -- 6.5 Кб -- 03.02.2002
Похожие документы
Похожие документы
3114. end
. PHP Manual . Prev . Next . (PHP 3 <= 3.0.18, PHP 4 >= 4.0.0) end -- Set the internal pointer of an array to its last element . mixed end ( array array) . end() advances array 's internal pointer to the last element, and returns that element. See also current() , each() , next() , and reset() . Prev . Home . Next . each . Up . extract
[
Сохраненная копия
]
Ссылки http://old.hcs.cmc.msu.ru/php/function.end.html -- 3.6 Кб -- 03.02.2002
Похожие документы
Похожие документы
3115. extract
... 3.0.7 - 3.0.18 only, PHP 4 >= 4.0.0) extract -- Import variables into the current symbol table from an array . int extract ( array var_array [, int extract_type [, string prefix]]) . This function is used to import variables from an array into the current symbol table. ... For each key/value pair it will create a variable in the current symbol table, subject to extract_type and prefix parameters. Note: Since version 4.0.5 this function returns the number of variables extracted. ...
[
Сохраненная копия
]
Ссылки http://old.hcs.cmc.msu.ru/php/function.extract.html -- 8.5 Кб -- 03.02.2002
Похожие документы
Похожие документы
3116. each
... PHP 3 <= 3.0.18, PHP 4 >= 4.0.0) each -- Return the current key and value pair from an array and advance the array cursor . ... Returns the current key and value pair from the array array and advances the array cursor. ... foo = array ("bob", "fred", "jussi", "jouni", "egon", "marliese"); $bar = each ($foo); . ... foo = array ("Robert" => "Bob", "Seppo" => "Sepi"); $bar = each ($foo); . ... each() is typically used in conjunction with list() to traverse an array; for instance, $HTTP_POST_VARS : . ...
[
Сохраненная копия
]
Ссылки http://old.hcs.cmc.msu.ru/php/function.each.html -- 7.0 Кб -- 03.02.2002
Похожие документы
Похожие документы
3117. count
PHP Manual . ... PHP 3 <= 3.0.18, PHP 4 >= 4.0.0) count -- Count elements in a variable . int count ( mixed var) . Returns the number of elements in var , which is typically an array (since anything else will have one element). If var is not an array, 1 will be returned (exception: count( NULL ) equals 0 ). ... count() may return 0 for a variable that isn't set, but it may also return 0 for a variable that has been initialized with an empty array. ... Example 1. count() example . ...
[
Сохраненная копия
]
Ссылки http://old.hcs.cmc.msu.ru/php/function.count.html -- 5.3 Кб -- 03.02.2002
Похожие документы
Похожие документы
3118. current
... Next . PHP 3 <= 3.0.18, PHP 4 >= 4.0.0) current -- Return the current element in an array . mixed current ( array array) . Every array has an internal pointer to its "current" element, which is initialized to the first element inserted into the array. The current() function simply returns the array element that's currently being pointed by the internal pointer. ... If the internal pointer points beyond the end of the elements list, current() returns FALSE . ...
[
Сохраненная копия
]
Ссылки http://old.hcs.cmc.msu.ru/php/function.current.html -- 4.6 Кб -- 03.02.2002
Похожие документы
Похожие документы
3119. compact
... PHP 4 >= 4.0.0) compact -- Create array containing variables and their values . ... Each parameter can be either a string containing the name of the variable, or an array of variable names. The array can contain other arrays of variable names inside it; compact() handles it recursively. ... Example 1. compact() example . city = "San Francisco"; $state = "CA"; $event = "SIGGRAPH"; $location_vars = array ("city", "state"); $result = compact ("event", "nothing_here", $location_vars); . ...
[
Сохраненная копия
]
Ссылки http://old.hcs.cmc.msu.ru/php/function.compact.html -- 4.9 Кб -- 03.02.2002
Похожие документы
Похожие документы
3120. arsort
PHP Manual . ... PHP 3 <= 3.0.18, PHP 4 >= 4.0.0) arsort -- Sort an array in reverse order and maintain index association . void arsort ( array array [, int sort_flags]) . ... This is used mainly when sorting associative arrays where the actual element order is significant. Example 1. arsort() example . fruits = array ("d"=>"lemon", "a"=>"orange", "b"=>"banana", "c"=>"apple"); arsort ($fruits); reset ($fruits); while (list ($key, $val) = each ($fruits)) { echo "$key = $val\n"; } . ...
[
Сохраненная копия
]
Ссылки http://old.hcs.cmc.msu.ru/php/function.arsort.html -- 4.8 Кб -- 03.02.2002
Похожие документы
Похожие документы