PHP course. Functions for working with arrays and operations on arrays

$10.50


Buy
MasterCard Visa
Infoslovo

Description

<p>Arrays in PHP (as in other languages) are a collection of values linked together. For example, a menu in a restaurant (name of the dish - price) or the number of people living in a country&#39;s cities (city of the country - number of inhabitants) can be represented as an array. As explained in this article, a variable is a named container in memory that contains a specific value. In this sense, an array is a container containing many values.</p> <p>An array can have only one element with a given key, i.e. the above array cannot have two elements with the key dinner. If we try to &quot;add&quot; a second dinner, we will simply overwrite the value of the existing element. In this example we have considered the most common case of array organization, namely as an associative array. An associative array is more convenient to use in code, because its keys have meaningful names (associated with some parts of the application or data processed by the script). But there is a simpler example of an array, these are numeric arrays. When creating them, you don&#39;t need to specify a key, it is set automatically as an integer starting from zero.</p> <p>As you already know, array elements can contain as a value data of any type, strings, numbers, logical, including other arrays. An array consisting of other arrays is called a multidimensional or nested array. In practice, 2-3 levels of nesting are used to store any related structural data (e.g., data of any type).</p>

ABOUT US
onliner.academy is a knowledge marketplace. On our site you will find a huge number of courses in different areas - learning different languages (English, German, Spanish, French and others), courses on programming, professional development and much more. Join in!
TESTIMONIALS
12 206 specialists already with us
Join those who are already on the path to growth: share your discoveries, exchange experiences, be inspired and get support from like-minded people
how do I get my order?
1
Put a digital item in your cart
2
Pay your order
3
Specify your email at checkout
4
Receive access to your purchase by email
Payment Methods:
MasterCard Visa