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

В начало ] Пред. | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | След.В конец ]

Упорядочить по: URL  |  дате изменения
3121. array_walk
PHP Manual . ... int array_walk ( array array, string func [, mixed userdata]) . ... fruits = array ("d"=>"lemon", "a"=>"orange", "b"=>"banana", "c"=>"apple"); function test_alter (&$item1, $key, $prefix) { $item1 = "$prefix: $item1"; } function test_print ($item2, $key) { echo "$key. $item2<br>\n"; } echo "Before ...:\n"; array_walk ($fruits, 'test_print'); reset ($fruits); array_walk ($fruits, 'test_alter', 'fruit'); echo "... and after:\n"; reset ($fruits); array_walk ($fruits, 'test_print'); . ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/function.array-walk.html -- 6.9 Кб -- 03.02.2002
Похожие документы

3122. array_unshift
... Next . PHP 4 >= 4.0.0) array_unshift -- Prepend one or more elements to the beginning of array . int array_unshift ( array array, mixed var [, mixed ...]) . array_unshift() prepends passed elements to the front of the array . ... Returns the new number of elements in the array . Example 1. array_unshift() example . queue = array ("orange", "banana"); array_unshift ($queue, "apple", "raspberry"); . ... Array ( [0] => apple [1] => raspberry [2] => orange [3] => banana ) . ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/function.array-unshift.html -- 4.6 Кб -- 03.02.2002
Похожие документы

3123. array_values
... PHP 4 >= 4.0.0) array_values -- Return all the values of an array . array array_values ( array input) . ... Example 1. array_values() example . array = array ("size" => "XL", "color" => "gold"); print_r(array_values ($array)); . ... Note: This function was added to PHP 4, below is an implementation for those still using PHP 3. ... Implementation of array_values() for PHP 3 users . function array_values ($arr) { $t = array(); while (list($k, $v) = each ($arr)) { $t[] = $v; } return $t; } . ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/function.array-values.html -- 4.8 Кб -- 03.02.2002
Похожие документы

3124. array_sum
... PHP 4 >= 4.0.4) array_sum -- Calculate the sum of values in an array. mixed array_sum ( array array) . array_sum() returns the sum of values in an array as an integer or float. ... a = array(2, 4, 6, 8); echo "sum(a) = ".array_sum($a)."\n"; $b = array("a"=>1.2,"b"=>2.3,"c"=>3.4); echo "sum(b) = ".array_sum($b)."\n"; . ... Note: PHP versions prior to 4.0.6 modified the passed array itself and converted strings to numbers (which most of the time converted them to zero, depending on their value). ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/function.array-sum.html -- 4.3 Кб -- 03.02.2002
Похожие документы

3125. array_unique
... PHP 4 ) array_unique -- Removes duplicate values from an array . ... array_unique() takes input array and returns a new array without duplicate values. Note that keys are preserved. array_unique() sorts the values treated as string at first, then will keep the first key encountered for every value, and ignore all following keys. ... Example 1. array_unique() example . input = array ("a" => "green", "red", "b" => "green", "blue", "red"); $result = array_unique ($input); print_r($result); . ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/function.array-unique.html -- 5.7 Кб -- 03.02.2002
Похожие документы

3126. array_slice
... array array_slice ( array array, int offset [, int length]) . array_slice() returns a sequence of elements from the array specified by the offset and length parameters. ... Example 1. array_slice() examples . input = array ("a", "b", "c", "d", "e"); $output = array_slice ($input, 2); // returns "c", "d", and "e" $output = array_slice ($input, 2, -1); // returns "c", "d" $output = array_slice ($input, -2, 1); // returns "d" $output = array_slice ($input, 0, 3); // returns "a", "b", and "c" . ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/function.array-slice.html -- 5.0 Кб -- 03.02.2002
Похожие документы

3127. array_splice
... PHP 4 >= 4.0.0) array_splice -- Remove a portion of the array and replace it with something else . array array_splice ( array input, int offset [, int length [, array replacement]]) . ... input = array ( red , green , blue , yellow ); array_splice ($ input , 2); // $ input is now array ( red , green ) $ input = array ( red , green , blue , yellow ); array_splice ($ input , 1, -1); // $ input is now array ( red , yellow ) $ See also array_slice() . ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/function.array-splice.html -- 7.1 Кб -- 03.02.2002
Похожие документы

3128. array_reduce
... PHP 4 >= 4.0.5) array_reduce -- Iteratively reduce the array to a single value using a callback function . mixed array_reduce ( array input, mixed callback [, int initial]) . ... Example 1. array_reduce() example . function rsum($v, $w) { $v += $w; return $v; } function rmul($v, $w) { $v *= $w; return $v; } $a = array(1, 2, 3, 4, 5); $x = array(); $b = array_reduce($a, "rsum"); $c = array_reduce($a, "rmul", 10); $d = array_reduce($x, "rsum", 1); . ... See also array_filter() and array_map() . ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/function.array-reduce.html -- 4.8 Кб -- 03.02.2002
Похожие документы

3129. array_shift
... Next . PHP 4 >= 4.0.0) array_shift -- Shift an element off the beginning of array . mixed array_shift ( array array) . array_shift() shifts the first value of the array off and returns it, shortening the array by one element and moving everything down. ... Example 1. array_shift() example . stack = array ("orange", "banana", "apple", "raspberry"); $fruit = array_shift ($stack); . ... Array ( [0] => banana [1] => apple [2] => raspberry ) and orange will be assigned to $fruit . ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/function.array-shift.html -- 4.7 Кб -- 03.02.2002
Похожие документы

3130. array_rand
... PHP 4 >= 4.0.0) array_rand -- Pick one or more random entries out of an array . ... array_rand() is rather useful when you want to pick one or more random entries out of an array. ... If you are picking only one entry, array_rand() returns the key for a random entry. ... srand ((float) microtime() * 10000000); $input = array ("Neo", "Morpheus", "Trinity", "Cypher", "Tank"); $rand_keys = array_rand ($input, 2); print $input[$rand_keys[0]]."\n"; print $input[$rand_keys[1]]."\n"; . ... array_push . ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/function.array-rand.html -- 4.5 Кб -- 03.02.2002
Похожие документы

3131. array_reverse
PHP Manual . ... PHP 4 >= 4.0.0) array_reverse -- Return an array with elements in reverse order . array array_reverse ( array array [, bool preserve_keys]) . array_reverse() takes input array and returns a new array with the order of the elements reversed, preserving the keys if preserve_keys is TRUE . Example 1. array_reverse() example . input = array ("php", 4.0, array ("green", "red")); $result = array_reverse ($input); $result_keyed = array_reverse ($input, TRUE); . ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/function.array-reverse.html -- 4.8 Кб -- 03.02.2002
Похожие документы

3132. array_push
... PHP 4 >= 4.0.0) array_push -- Push one or more elements onto the end of array . int array_push ( array array, mixed var [, mixed ...]) . array_push() treats array as a stack, and pushes the passed variables onto the end of array . ... Example 1. array_push() example . stack = array ("orange", "banana"); array_push ($stack, "apple", "raspberry"); . This example would result in $stack having the following elements: . ... See also array_pop() , array_shift() , and array_unshift() . ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/function.array-push.html -- 4.8 Кб -- 03.02.2002
Похожие документы

3133. array_pad
... Next . PHP 4 >= 4.0.0) array_pad -- Pad array to the specified length with a value . array array_pad ( array input, int pad_size, mixed pad_value) . array_pad() returns a copy of the input padded to size specified by pad_size with value pad_value . ... input = array (12, 10, 9); $result = array_pad ($input, 5, 0); // result is array (12, 10, 9, 0, 0) $result = array_pad ($input, -7, -1); // result is array (-1, -1, -1, -1, 12, 10, 9) $result = array_pad ($input, 2, "noop"); // not padded . ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/function.array-pad.html -- 4.4 Кб -- 03.02.2002
Похожие документы

3134. array_pop
... PHP 4 >= 4.0.0) array_pop -- Pop the element off the end of array . mixed array_pop ( array array) . array_pop() pops and returns the last value of the array , shortening the array by one element. ... Example 1. array_pop() example . stack = array ("orange", "banana", "apple", "raspberry"); $fruit = array_pop ($stack); . ... Array ( [0] => orange [1] => banana [2] => apple ) and rasberry will be assigned to $fruit . ... See also array_push() , array_shift() , and array_unshift() . ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/function.array-pop.html -- 5.1 Кб -- 03.02.2002
Похожие документы

3135. array_merge_recursive
... PHP 4 ) array_merge_recursive -- Merge two or more arrays recursively . array array_merge_recursive ( array array1, array array2 [, array ...]) . array_merge_recursive() merges the elements of two or more arrays together so that the values of one are appended to the end of the previous one. ... ar1 = array ("color" => array ("favorite" => "red"), 5); $ar2 = array (10, "color" => array ("favorite" => "green", "blue")); $result = array_merge_recursive ($ar1, $ar2); . ... See also array_merge() . ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/function.array-merge-recursive.html -- 5.0 Кб -- 03.02.2002
Похожие документы

3136. array_multisort
... PHP 4 >= 4.0.0) array_multisort -- Sort multiple or multi-dimensional arrays . ... The first array is the primary one to sort by. ... ar = array (array ("10", 100, 100, "a"), array (1, 3, "2", 1)); array_multisort ($ar[0], SORT_ASC, SORT_STRING, $ar[1], SORT_NUMERIC, SORT_DESC); . In this example, after sorting, the first array will contain 10, 100, 100, "a" (it was sorted as strings in ascending order), and the second one will contain 1, 3, "2", 1 (sorted as numbers, in descending order). ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/function.array-multisort.html -- 6.3 Кб -- 03.02.2002
Похожие документы

3137. array_map
... PHP 4 >= 4.0.6) array_map -- Applies the callback to the elements of the given arrays . array array_map ( mixed callback, array arr1 [, array arr2...]) . ... function show_Spanish($n, $m) { return "The number $n is called $m in Spanish"; } function map_Spanish($n, $m) { return array ($n => $m); } $a = array(1, 2, 3, 4, 5); $b = array("uno", "dos", "tres", "cuatro", "cinco"); $c = array_map("show_Spanish", $a, $b); print_r($c); $d = array_map("map_Spanish", $a , $b); print_r($d); . ... array_keys . ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/function.array-map.html -- 7.8 Кб -- 03.02.2002
Похожие документы

3138. array_merge
... PHP 4 >= 4.0.0) array_merge -- Merge two or more arrays . array array_merge ( array array1, array array2 [, array ...]) . array_merge() merges the elements of two or more arrays together so that the values of one are appended to the end of the previous one. ... array1 = array ("color" => "red", 2, 4); $array2 = array ("a", "b", "color" => "green", "shape" => "trapezoid", 4); $result = array_merge ($array1, $array2); . ... See also array_merge_recursive() . ... array_merge_recursive ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/function.array-merge.html -- 4.7 Кб -- 03.02.2002
Похожие документы

3139. array_key_exists
PHP Manual . Prev . Next . PHP 4 >= 4.1.0) array_key_exists -- Checks if the given key or index exists in the array . bool array_key_exists ( mixed key, array search) . array_key_exists() returns TRUE if the given key is set in the array. key can be any value possible for an array index. Example 1. array_key_exists() example . search_array = array("first" => 1, "second" => 4); if (array_key_exists("first", $search_array)) { echo "The 'first' element is in the array"; } . ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/function.array-key-exists.html -- 4.3 Кб -- 03.02.2002
Похожие документы

3140. array_keys
PHP Manual . ... PHP 4 >= 4.0.0) array_keys -- Return all the keys of an array . array array_keys ( array input [, mixed search_value]) . ... Example 1. array_keys() example . array = array (0 => 100, "color" => "red"); print_r(array_keys ($array)); $array = array ("blue", "red", "green", "blue", "blue"); print_r(array_keys ($array, "blue")); $array = array ("color" => array("blue", "red", "green"), "size" => array("small", "medium", "large")); print_r(array_keys ($array)); . ... Example 2. ...
[ Сохраненная копия ]  Ссылки http://old.master.cmc.msu.ru/php/function.array-keys.html -- 5.5 Кб -- 03.02.2002
Похожие документы

В начало ] Пред. | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | След.В конец ]

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