Public Questions for tag [array]

Ask Question

An array is a collection of items or elements.An array is often more useful to think of an array as a collection of variables of the same type. An array consists of contiguous memory locations. Instead of declaring individual variables, you can store value in a single variable. A specific element in an array is accessed by an index.

3 questions


0

Vote

1

Answers

29

View

I have a javascript array of numbers and I add numbers elements in an array using the push() method. Is there any simple way to remove a specific item or ​element from a javascript array?I'm lo

Dec 20

0

Vote

3

Answers

46

View

I have an array like:$array = array(0 => 'blue', 1 => 'red', 2 => 'green', 3 => 'red'); echo native_function($array, 0); // bar echo native_function($array, 1); // bin echo native_funct
php array 

Nov 27

0

Vote

1

Answers

62

View

I have two types of array 1. Indexed arrays and 2. Associative Array. I need help to check key exists in an array or not.1. Indexed arrays$index_array = ['apple', 'pear', 'banana'];2. Associative Arra
php array 

Nov 26