Download
Download Latest
Version Support Policy
Documentation
Documentation Home
Tutorial
Project
Governance
Branding
License
GitHub Repository
Community
Contribute to PHP
Online Communities
Events | Conferences
Mailing Lists
PHP 8.5
All Releases
Search docs
Getting Started
Introduction
A simple tutorial
Language Reference
Basic syntax
Types
Variables
Constants
Expressions
Operators
Control Structures
Functions
Classes and Objects
Namespaces
Exceptions
Generators
References Explained
Predefined Variables
Predefined Exceptions
Predefined Interfaces and Classes
Context options and parameters
Supported Protocols and Wrappers
Security
Introduction
General considerations
Installed as CGI binary
Installed as an Apache module
Filesystem Security
Database Security
Error Reporting
Using Register Globals
User Submitted Data
Magic Quotes
Hiding PHP
Keeping Current
Features
HTTP authentication with PHP
Cookies
Sessions
Dealing with XForms
Handling file uploads
Using remote files
Connection handling
Persistent Database Connections
Safe Mode
Command line usage
Garbage Collection
DTrace Dynamic Tracing
Function Reference
Affecting PHP's Behaviour
Audio Formats Manipulation
Authentication Services
Command Line Specific Extensions
Compression and Archive Extensions
Credit Card Processing
Cryptography Extensions
Database Extensions
Date and Time Related Extensions
File System Related Extensions
Human Language and Character Encoding Support
Image Processing and Generation
Mail Related Extensions
Mathematical Extensions
Non-Text MIME Output
Process Control Extensions
Other Basic Extensions
Other Services
Search Engine Extensions
Server Specific Extensions
Session Extensions
Text Processing
Variable and Type Related Extensions
Web Services
Windows Only Extensions
XML Manipulation
Keyboard Shortcuts
?
This help
j
Next menu item
k
Previous menu item
g p
Previous man page
g n
Next man page
G
Scroll to bottom
g g
Scroll to top
g h
Goto homepage
g s
Goto search
(current page)
/
Focus search box
Array Funzioni
PHP Manual
PHP Manual
»
Arrays
»
Array Funzioni
Array Funzioni
Vedere anche:
Vedere anche le funzioni
is_array()
,
explode()
,
implode()
,
preg_split()
e
unset()
.
Indice dei contenuti
array
— Crea un array
array_all
— Checks if all array elements satisfy a callback function
array_any
— Checks if at least one array element satisfies a callback function
array_change_key_case
— Restituisce un array con tutte le chiavi cambiate in maiuscolo o in minuscolo
array_chunk
— Spezza un array in tronconi
array_column
— Return the values from a single column in the input array
array_combine
— Crea un'array utilizzando un'array per le chiavi ed un altro per i suoi valori
array_count_values
— Conta tutti i valori di un array
array_diff
— Calcola la differenza di due o più array
array_diff_assoc
— Calcola la differenza tra array con un ulteriore controllo sull'indice
array_diff_key
— Computes the difference of arrays using keys for comparison
array_diff_uassoc
— Computes the difference of arrays with additional index check which is performed by a user supplied callback function
array_diff_ukey
— Computes the difference of arrays using a callback function on the keys for comparison
array_fill
— Riempie un array con i valori specificati
array_fill_keys
— Fill an array with values, specifying keys
array_filter
— Filtra gli elementi di un array usando una funzione callback
array_find
— Returns the first element satisfying a callback function
array_find_key
— Returns the key of the first element satisfying a callback function
array_first
— Gets the first value of an array
array_flip
— Scambia tutte le chiavi di un array con i loro valori associati
array_intersect
— Calcola l'intersezione degli arrays
array_intersect_assoc
— Calcola l'intersezione degli array con un ulteriore controllo sugli indici
array_intersect_key
— Computes the intersection of arrays using keys for comparison
array_intersect_uassoc
— Computes the intersection of arrays with additional index check, compares indexes by a callback function
array_intersect_ukey
— Computes the intersection of arrays using a callback function on the keys for comparison
array_is_list
— Checks whether a given array is a list
array_key_exists
— Controlla se l'indice o la chiave specificato esiste nell'array
array_key_first
— Gets the first key of an array
array_key_last
— Gets the last key of an array
array_keys
— Restituisce tutte le chiavi di un array
array_last
— Gets the last value of an array
array_map
— Applica la funzione callback a tutti gli elementi degli array dati
array_merge
— Fonde uno o più array
array_merge_recursive
— Fonde due o più array in modo ricorsivo
array_multisort
— Ordina array multipli o multidimensionali
array_pad
— Riempie con un valore un array fino alla lunghezza specificata
array_pop
— Estrae l'elemento alla fine dell'array
array_product
— Calculate the product of values in an array
array_push
— Accoda uno o più elementi ad un array
array_rand
— Estrae a caso uno o più elementi da un array
array_reduce
— Riduce iterativamente l'array a un singolo valore utilizzando una funzione callback
array_replace
— Replaces elements from passed arrays into the first array
array_replace_recursive
— Replaces elements from passed arrays into the first array recursively
array_reverse
— Restituisce un array con gli elementi in ordine invertito
array_search
— Ricerca un dato valore in un array e ne restituisce la chiave corrispondente, se la ricerca ha successo.
array_shift
— Estrae l'elemento alla testa dell'array
array_slice
— Estrae un sottoinsieme da un array
array_splice
— Rimuove una porzione dell'array e la sostituisce con altro
array_sum
— Calcola la somma dei valori di un array
array_udiff
— Computes the difference of arrays by using a callback function for data comparison
array_udiff_assoc
— Computes the difference of arrays with additional index check, compares data by a callback function
array_udiff_uassoc
— Computes the difference of arrays with additional index check, compares data and indexes by a callback function
array_uintersect
— Computes the intersection of arrays, compares data by a callback function
array_uintersect_assoc
— Computes the intersection of arrays with additional index check, compares data by a callback function
array_uintersect_uassoc
— Computes the intersection of arrays with additional index check, compares data and indexes by separate callback functions
array_unique
— Rimuove i valori duplicati di un array
array_unshift
— Inserisce uno o più elementi all'inizio dell'array
array_values
— Restituisce tutti i valori di un array
array_walk
— Esegue una funzione su ogni elemento dell'array
array_walk_recursive
— Apply a user function recursively to every member of an array
arsort
— Ordina un array in ordine decrescente e mantiene le associazioni degli indici
asort
— Ordina un array e mantiene le associazioni degli indici
compact
— Crea un array contenente variabili e il loro valore
count
— Conta gli elementi in una variabile, o le proprietà in un oggetto
current
— Restituisce l'elemento corrente di un array
each
— Restituisce la corrente coppia chiave/valore di un array e incrementa il puntatore dell'array
end
— Sposta il puntatore interno dell'array all'ultimo elemento
extract
— Importa le variabili nella tabella dei simboli corrente da un array
in_array
— Controlla se un valore è presente in un array
key
— Estrae la chiave corrente da un array associativo
key_exists
— Alias di array_key_exists
krsort
— Ordina rispetto alle chiavi di un array in ordine inverso
ksort
— Ordina rispetto alle chiavi di un array
list
— Assegna valori a delle variabili come se fossero un array
natcasesort
— Ordina un array usando un algoritmo di "ordine naturale" non sensibile alle maiuscole/minuscole
natsort
— Ordina un array usando un algoritmo di "ordine naturale"
next
— Incrementa il puntatore interno dell'array
pos
— Alias di current
prev
— Decrementa il puntatore interno dell'array
range
— Crea un array contenente una serie di elementi
reset
— Reimposta il puntatore interno di un array sulla posizione iniziale
rsort
— Ordina un array in ordine decrescente
shuffle
— Mescola un array
sizeof
— Alias di count
sort
— Ordina un array
uasort
— Ordina un array mediante una funzione definita dall'utente e mantiene le associazioni
uksort
— Ordina rispetto alle chiavi di un array mediante una funzione definita dall'utente
usort
— Ordina un array mediante una funzione definita dall'utente
↑
and
↓
to navigate •
Enter
to select •
Esc
to close •
/
to open
Press
Enter
without selection to search using Google