How-to articles, tricks, and solutions about ARRAY

AngularJs Blocks Form Submit without "action"

AngularJs Blocks Form Submit without "action"-In general, AngularJs blocks the form submit, because of empty "Action".

How to Add Elements to an Empty Array in PHP

In this tutorial, we display and describe the most flexible ways to add elements to an empty array. Follow the steps and you will manage that easily.

How To Add New Elements To A JavaScript Array

To add new elements you can use the following JavaScript functions: push() unshift(), concat() function or splice(). See examples.

How to Append an Array to Another in PHP

While working with PHP, developers wonder how to append one array to another. This snippet is dedicated to the exploration of functions that help to do it.

How to Append an Item to an Array in JavaScript

On this page, you can learn the ways of appending an item or multiple items to an array in JavaScript.

How to Check if an Object has a Specific Property in JavaScript

Read this tutorial and learn the methods of checking whether the specified object has the specified property in JavaScript. Find the fastest one for you.

How to Check if JavaScript Object is Empty

Read this tutorial and find methods of checking whether a JavaScript object is empty or not. Choose the best one for you and get the code immediately.

How to Check Whether an Array Is Empty in PHP

On this page, we represented to you the three principal ways that allow programmers to detect whether a given array is empty or not. Just see the examples.

How to Compare Two JavaScrpt Arrays

You can either loop through the arrays or convert them to string and then compare. This tutorial provides several fast methods of comparing two arrays.

How to Convert a Comma-Separated String into Array

Read this tutorial and learn information about the JavaScript built-in split() method which is called for converting a comma-separated string in an array.

How to Convert a PHP Array to a JavaScript Array

In this tutorial, you can find a comprehensive guideline on how to convert a PHP array to JavaScript accurately. Just check out the options and examples.

How to Convert a PHP Object to an Associative Array

If you want to get a proper explanation of how to convert a PHP object to an associative array, you are in the right place. Just follow the examples.

How to Convert Arguments Object to an Array

Read this JavaScript tutorial and learn information about the useful methods that are used for converting array-like arguments object to an Array easily.

How to Convert Set to Array in JavaScript

Read the tutorial and learn about several methods used for converting Set to Array in JavaScript. Also, read about differences between these two structures.

How to Convert String to Title Case with JavaScript

Read this JavaScript tutorial and learn information about the combinations of methods that make it possible to convert the string to title case easily.

How to Copy Array Items into Another Array

Read this JavaScript tutorial and learn several useful methods of copying array items into another array. Get to know which method to choose for your case.

How to Count All the Array Elements with PHP

While working with arrays, it is commonly necessary to count all its elements. This snippet will discover two helpful functions that will help you do that.

How to Count String Occurrence in String

Read this tutorial and learn several useful methods that are used to count the string occurrence in a string. Choose one of the working methods for you.

How to Create a Two Dimensional Array in JavaScript

The two-dimensional array is an array of arrays. Read this JavaScript tutorial and find out several methods of creating two dimensional arrays easily.

How to Create an Array Containing 1…N

Read this JavaScript tutorial and get information concerning the problem of creating an Array that contains 1 through to N. Find two methods for solving it.

How to Create and Parse JSON Data with PHP

JSON is a data-interchange format, which can be generated and parsed by PHP or other programming languages. See how to create and parse JSON data by PHP.

How to Deal With Undefined Offset Error in PHP

Here is a snippet that will help you to deal with a common PHP undefined offset error. Here, you will find three methods that help to avoid such an error.

How to Declare and Initialize an Array in JavaScript

Read this tutorial and learn the two basic methods of declaring and initializing an Array in JavaScript. Also, read about the differences of the methods.

How to Delete an Element from an Array in PHP

In this short tutorial, you will find the most proper solution to the commonly asked question by programmers: how to delete an element from an array.

How to Determine the First and Last Iteration in a Foreach loop?

In this snippet, we are going to figure out how to successfully determine the first and last iteration in a foreach loop with the help of PHP.

1 2 3