Mailinglisten-Archive |
Daniel.Eichten_(at)_LAB.de wrote: > Ich meine, ich hätte mal was von einer Funktion gelesen > mit der man im Array eine Stelle erkennen kann, und dann > dahinter ein neuen Wert einfügen kann. Ich finde diese > Funktion nicht mehr, oder gibt es sie nicht? Bei PHP3 gibt es nur die array_walk() Funktion. Bei PHP4 sind die folgenden bekannt: # beta/php4/ext/standard/array.c array array_count_values(array input) Return the value as key and the frequency of that value in <input> as value array array_flip(array input) Return array with key <-> value flipped array array_keys(array input [, mixed search_value]) Return just the keys from the input array, optionally only for the specified search_value array array_merge(array arr1, array arr2 [, ...]) Merges elements from passed arrays into one array bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC] [, array ar2 [, SORT_ASC|SORT_DESC], ...]) Sort multiple arrays at once similar to how ORDER BY clause works in SQL array array_pad(array input, int pad_size, mixed pad_value) Returns a copy of input array padded with pad_value to size pad_size mixed array_pop(array stack) Pops an element off the end of the array int array_push(array stack, mixed var [, ...]) Pushes elements onto the end of the array array array_reverse(array input) Return input as a new array with the order of the entries reversed mixed array_shift(array stack) Pops an element off the beginning of the array array array_slice(array input, int offset [, int length]) Returns elements specified by offset and length array array_splice(array input, int offset [, int length [, array replacement]]) Removes the elements designated by offset and length and replace them with supplied array int array_unshift(array stack, mixed var [, ...]) Pushes elements onto the beginning of the array array array_values(array input) Return just the values from the input array int array_walk(array input, string funcname [, mixed userdata]) Apply a user function to every member of an array -Egon -- Six Offene Systeme GmbH. Stuttgart - Berlin - New York. Fon +49 711 9 90 91 64 · Fax +49 711 9 90 91 99 · http://www.six.de/
php::bar PHP Wiki - Listenarchive