PHP Array

New Post Public Reply Private Reply Replies (0) Message Board
nerd

PHP Array Functions

http://www.w3schools.com/php/php_ref_array.asp

PHP : indicates the earliest version of PHP that supports the function.

Function Description PHP
array() Creates an array 3
array_change_key_case() Returns an array with all keys in lowercase or uppercase 4
array_chunk() Splits an array into chunks of arrays 4
array_combine() Creates an array by using one array for keys and another for its values 5
array_count_values() Returns an array with the number of occurrences for each value 4
array_diff() Compares array values, and returns the differences 4
array_diff_assoc() Compares array keys and values, and returns the differences 4
array_diff_key() Compares array keys, and returns the differences 5
array_diff_uassoc() Compares array keys and values, with an additional user-made function check, and returns the differences 5
array_diff_ukey() Compares array keys, with an additional user-made function check, and returns the differences 5
array_fill() Fills an array with values 4
array_filter() Filters elements of an array using a user-made function 4
array_flip() Exchanges all keys with their associated values in an array 4
array_intersect() Compares array values, and returns the matches 4
array_intersect_assoc() Compares array keys and values, and returns the matches 4
array_intersect_key() Compares array keys, and returns the matches 5
array_intersect_uassoc() Compares array keys and values, with an additional user-made function check, and returns the matches 5
array_intersect_ukey() Compares array keys, with an additional user-made function check, and returns the matches 5
array_key_exists() Checks if the specified key exists in the array 4
array_keys() Returns all the keys of an array 4
array_map() Sends each value of an array to a user-made function, which returns new values 4
array_merge() Merges one or more arrays into one array 4
array_merge_recursive() Merges one or more arrays into one array 4
array_multisort() Sorts multiple or multi-dimensional arrays 4
array_pad() Inserts a specified number of items, with a specified value, to an array 4
array_pop() Deletes the last element of an array 4
array_product() Calculates the product of the values in an array 5
array_push() Inserts one or more elements to the end of an array 4
array_rand() Returns one or more random keys from an array 4
array_reduce() Returns an array as a string, using a user-defined function 4
array_reverse() Returns an array in the reverse order 4
array_search() Searches an array for a given value and returns the key 4
array_shift() Removes the first element from an array, and returns the value of the removed element 4
array_slice() Returns selected parts of an array 4
array_splice() Removes and replaces specified elements of an array 4
array_sum() Returns the sum of the values in an array 4
array_udiff() Compares array values in a user-made function and returns an array 5
array_udiff_assoc() Compares array keys, and compares array values in a user-made function, and returns an array 5
array_udiff_uassoc() Compares array keys and array values in user-made functions, and returns an array 5
array_uintersect() Compares array values in a user-made function and returns an array 5
array_uintersect_assoc() Compares array keys, and compares array values in a user-made function, and returns an array 5
array_uintersect_uassoc() Compares array keys and array values in user-made functions, and returns an array 5
array_unique() Removes duplicate values from an array 4
array_unshift() Adds one or more elements to the beginning of an array 4
array_values() Returns all the values of an array 4
array_walk() Applies a user function to every member of an array 3
array_walk_recursive() Applies a user function recursively to every member of an array 5
arsort() Sorts an array in reverse order and maintain index association 3
asort() Sorts an array and maintain index association 3
compact() Create array containing variables and their values 4
count() Counts elements in an array, or properties in an object 3
current() Returns the current element in an array 3
each() Returns the current key and value pair from an array 3
end() Sets the internal pointer of an array to its last element 3
extract() Imports variables into the current symbol table from an array 3
in_array() Checks if a specified value exists in an array 4
key() Fetches a key from an array 3
krsort() Sorts an array by key in reverse order 3
ksort() Sorts an array by key 3
list() Assigns variables as if they were an array 3
natcasesort() Sorts an array using a case insensitive "natural order" algorithm 4
natsort() Sorts an array using a "natural order" algorithm 4
next() Advance the internal array pointer of an array 3
pos() Alias of current() 3
prev() Rewinds the internal array pointer 3
range() Creates an array containing a range of elements 3
reset() Sets the internal pointer of an array to its first element 3
rsort() Sorts an array in reverse order 3
shuffle() Shuffles an array 3
sizeof() Alias of count() 3
sort() Sorts an array 3
uasort() Sorts an array with a user-defined function and maintain index association 3
uksort() Sorts an array by keys using a user-defined function 3
usort() Sorts an array by values using a user-defined function 3
Scroll down for more posts ▼

Top 10 Most Recent News Articles

Moon Base Ambitions: Impulse Space Wins Key NASA Contracts

Updated Category News Views 393

NASA's Vision and Impulse's New Role Ever think you'd see a company like Impulse Space set to play a starring role in humanity's return to the lunar surface? Well, strap in because this isn't just a pipe dream anymore. NASA's bold plan to establish a Moon Base has taken a tangible step forward with Impulse winning two hefty task orders. This ain't just peanuts—this duo...

Continue Reading
Invasive Procedures Don't Extend Life in Stable Heart Disease

Updated Category News Views 220

Challenging Longstanding Beliefs Today’s news from the heart research front might set a few cardiology heads spinning. We’ve got big-time findings out of the ISCHEMIA-EXTEND study, throwing more weight on the evidence pile that early invasive heart procedures for patients with stable coronary artery disease don’t actually extend your life. Managing care with a blend...

Continue Reading
Quantum Space Joins $185M NASA Lunar Transport Deal

Updated Category News Views 298

Quantum Space Bags a Chunk of NASA's Lunar Ambitions Alright, folks, buckle up because we're about to dive into the cosmos. Quantum Space just nabbed a sweet deal—a $185 million whopper of a contract from NASA's Moon Base Transportation program. This isn't chump change; it's a 25% slice for Quantum from the lot Arrow Science and Technology is heading. We're talking...

Continue Reading
TCL's Display Future: AI Meets Screens at DTC 2026

Updated Category News Views 110

Exploring New Horizons in Display Technology There's something brewing in Wuhan: a conference that’s shaping up like a tech enthusiast’s dream. This year, it's all about the symbiosis of cutting-edge tech and dazzling visuals as TCL CSOT gears up to unveil advancements at the Global Display Tech-Ecosystem Conference (DTC) 2026. If you're wondering whether this event...

Continue Reading
Aurora Innovation Faces Legal Heat Amid Delays

Updated Category News Views 150

Production Snags at Aurora Innovation Ah, investing – not for the faint-hearted. One day you're riding high, the next you're scraping by, and Aurora Innovation's (NASDAQ:AUR) investors just hit a rough patch. The autonomous trucking darling announced unexpected delays in its delivery schedule, sending shockwaves through its stock price and shaking investor confidence....

Continue Reading
Johnson & Johnson Unveils Promising PsA Treatment Data

Updated Category News Views 188

A Game-Changer in Psoriatic Arthritis Treatment? Johnson & Johnson just tossed a headline-grabbing bone into the world of psoriatic arthritis with their new ICOTYDE results. For anyone tangled in the chronic web of psoriatic arthritis, hearing about a potential new treatment like ICOTYDE comes with cautious hope. Between stiff joints and rashy skin, sufferers are often...

Continue Reading
Evaluating GLP-1 Telehealth? Key Questions to Consider

Updated Category News Views 331

Navigating the Landscape of GLP-1 Telehealth Providers In the sprawling jungle of telehealth options for GLP-1 care, it's easy to feel like you're drowning in sameness. Picture this: you land on a sleek page promising the moon and stars, but who knows what's behind the curtain? That's where seasoned advice comes in, like a compass in this murky digital forest. Meant, a...

Continue Reading
Off-Broadway Play 'DUST' Raises Autism Support Funds

Updated Category News Views 318

Here's the scoop: an Off-Broadway production just did something many big hitters can't pull off. 'DUST,' a show crafted like a love letter to the American West, managed to rustle up $30,000 for young adults grappled with autism. Partnering with no less than Yale's Cultural Autism Studies and the Ed Asner Family Center, this effort hit the mark in more ways than one. An...

Continue Reading
ecozy's Brezzano Switch: Brewing Simplicity at Home

Updated Category News Views 361

Breathe the aroma, sip the innovation. ecozy just threw their Brezzano Switch into the arena, and here's the deal: it's a no-nonsense, get-your-caffeine-fix kind of machine aimed at making your mornings simple without compromising on flavor. Unique Features of the Brezzano Switch So, what's cooking? Get this—it's not just any coffee contraption. Built sleek and compact,...

Continue Reading
Adding Fireplaces: Home Comfort or Construction Headache?

Updated Category News Views 227

Sizing Up the Installation Options Slapping a fireplace into a home sounds more like a pipe dream than a practical project for most folks. But according to fireplace whiz Jimmy Smith down in North Charleston, the times are a-changin'. These days, with advances in technology, homeowners can actually pull it off without collapsing their living room walls. Nitty-Gritty:...

Continue Reading

Top 5 Most Recently Viewed Articles

Sustainability Conference Returns: Shaping Resilient Communities

Updated Category News Views 210

Reimagining Sustainable Communities through Innovative Solutions Sustain Southern California, also known as Sustain SoCal, is excited to announce the upcoming second annual Sustainable Communities: Solutions in Resiliency conference. This important gathering is slated for a Thursday in February 2025, at a premier venue dedicated to fostering innovation and sustainability....

Continue Reading
FuelCell Energy's Recent Surge: Analyzing Market Impacts

Updated Category News Views 67

FuelCell Energy Experiences Notable Stock Surge FuelCell Energy (NASDAQ: FCEL) saw an impressive rise of 9.3% after news emerged of a hydrogen fuel cell bus set to be launched by Turkish bus maker Karsan. While the announcement came from far away, it highlights the global importance of reducing greenhouse gas emissions and the role of hydrogen technology across different...

Continue Reading
Understanding the Growth of Workers' Compensation State Funds

Updated Category News Views 82

Growth of Workers' Compensation State Funds Recent research reveals remarkable trends in the performance of U.S. workers' compensation state funds. Despite facing pricing challenges, a significant number of competitive U.S. state funds have achieved noteworthy growth in net premiums written over the past few years. These developments highlight the resilience and...

Continue Reading
Seeking Help: The $800 Million Bitcoin Recovery Dilemma

Updated Category News Views 382

Lost Fortune in Bitcoin: A Distressing Case James Howells, a software engineer, is in a unique and heartbreaking situation after losing access to his fortune in Bitcoin worth around $800 million. His dream of recovering a hard drive with 8,000 BTC has led him to appeal for help from none other than Donald Trump, the President-elect. As reported, Howells's bid to excavate...

Continue Reading
ClearSky Health Expands Services with New Rehabilitation Hospital

Updated Category News Views 702

ClearSky Health's New Rehabilitation Hospital Project ClearSky Health, a leading provider in rehabilitative healthcare, is thrilled to announce the development of a new 36-bed medical rehabilitation hospital. This facility will mark ClearSky's 16th hospital across the nation, strategically aimed at enhancing patient care in the region. Focus on Specialized Care The...

Continue Reading