Arrays in C#
Arrays are basically a list of items of the same type that are grouped together in a single container. Unlike variables which can only contain one value at a time, …
Arrays are basically a list of items of the same type that are grouped together in a single container. Unlike variables which can only contain one value at a time, …
This tutorial explains how to splice (split) an array into more than one array by specifying a new array and where to split the existing array, and also how to …
This tutorial explains how to sort arrays in PHP. You will learn how to sort both regular arrays by their value and associative arrays by their key. You will also …
An associative array is an array that use keys instead of index numbers for each element in the array. Keys in the array are given a value. Keys can only be used …
This tutorial explains how to loop through the elements in a PHP array. This works by using a for loop that will access elements in the array by their index. For each …
This tutorial explains how to modify existing values in a PHP array. It’s pretty simple – all you need to do is refer to the array and its index and …
An array is a structured data type that contains a number of related data items. It is kind of like a list eg. $months = array(0,1,2,3,4,5); creates an array that contains …
JSON stands for JavaScript Object Notation. JSON is a light-weight data interchange format that uses JavaScript syntax in text format that can be read and used as data by other …
This tutorial will explain how to create, access, and modify elements in a multi-dimension array. In the example here, we will work with a 2D (two-dimension) array in JavaScript. We …
Sometimes you might need to find out how many elements exist in an array (that is, the length of the array). The sample code below shows exactly how to do …
Arrays are very useful in any programming language. When you use a simple variable, you can only store one value. For example age = 17 or name = “Harry”. But …
This tutorial explains how to find the length of an array (how many elements are in an array), the length of an element in an array, and the length of …
This tutorial explains how to create an array in JavaScript. An array is a data structure (a way of storing and organising data) which, unlike variables, can store more than one value …
This video tutorial explains some different tasks you can perform with strings including: how to concatenate (join) strings together how to convert from integer to string ho to change text to uppercase or lowercase letters …