Tag : Array

ItSolutionStuff.com have tutorials for Array tag, here you can study articles of Array tag, Array tag posts collection, most popular and useful tutorials of Array tag, here you can find list of all relevant posts and example about Array tag, we have lists of tutorials and examples about Array tag. very simple and quick example collection of Latest Array tag.




How to get keys name from array using array helper in PHP Laravel ?

How to get keys name from array using array helper in PHP Laravel ?

Few days ago, I was working on my new Laravel 5.4 application and i require to get keys name from my array. i was thing how we can get it and laravel provide us for to do it. Finally i found array helper function in Laravel docs. There are several array helper function available for array. I found.....

By Hardik Savani | February 18, 2017 | Category : PHP Laravel

AngularJS - convert comma separated string to array example

AngularJS - convert comma separated string to array example

When i was working on my Laravel angularjs application, i require to make array from comma separated string, I was not expert in angularjs so i was thingking how is it possible ?, But Finally i was found solution using custom angularjs Filter. So, In this example, I will give you full example of ho.....

By Hardik Savani | November 24, 2016 | Category : Bootstrap jQuery AngularJS


PHP - How to remove duplicate values from multidimensional array?

PHP - How to remove duplicate values from multidimensional array?

Sometimes, we require to remove duplicates value from multidimensional array in our PHP framework php like laravel, codeigniter, zend etc. Today, In this example i going to give you example of get unique values from multidimensional array that way duplicates will be delete. In this example i have s.....

By Hardik Savani | August 20, 2016 | Category : PHP

How to remove duplicate values from Array in PHP?

How to remove duplicate values from Array in PHP?

It is pretty simple to delete duplicate values from PHP Array. But sometimes we confuse for how can we remove. But PHP provide pre-define function array_unique that can help to remove duplicate values from Array. array_unique() through we can get only unique value from array. So, you can see bellow.....

By Hardik Savani | July 14, 2016 | Category : PHP

How to remove key from array in Laravel 5?

How to remove key from array in Laravel 5?

Sometimes, we require to delete specific key from array like we have password and confirm-password field but we don't require to store confirm-password field we have to drop that key from input array, At that time we always use unset() function of PHP pre-define. But if you work on laravel then yo.....

By Hardik Savani | July 7, 2016 | Category : Laravel

How to get first element of array in Javascript?

How to get first element of array in Javascript?

Whenever you require to get first element value then you can use bellow example. I give you the way to get first element value in jquery. So let's see following example: <strong>Example</strong> <pre class="prettyprint lang-js"> <script type="text/javascript"> <br/> var languages = ["PHP".....

By Hardik Savani | April 18, 2016 | Category : Javascript jQuery

How to get last element of array in Javascript?

How to get last element of array in Javascript?

Whenever you require to get last element value then you can use bellow example. I give you three way to get last element value in jquery. So let's see following example: <strong>Example</strong> <pre class="prettyprint lang-js"> <script type="text/javascript"> <br/> var languages = ["PHP".....

By Hardik Savani | April 16, 2016 | Category : Javascript jQuery

How to set value as key in PHP array?

How to set value as key in PHP array?

Sometimes, we work on big php or other framework projects and we need to change array value as array key at that time you can learn from this post. In this example you can do that without foreach loop. For example if you have all country array but that array have key like 1,2,3,4... etc and value is.....

By Hardik Savani | April 8, 2016 | Category : PHP

How to convert array key to lowercase in PHP?

How to convert array key to lowercase in PHP?

Whenever you require to create all array key in lowercase then you can create that without using loop. you have to just use array_change_key_case(), array_change_key_case function take two argument one for array and second one for php function "CASE_LOWER". May be we need to do this when we are work.....

By Hardik Savani | April 6, 2016 | Category : PHP

How to convert array values to lowercase in PHP?

How to convert array values to lowercase in PHP?

Whenever you require to create all array value in lowercase then you can create that without using loop. you have to just use array_map(), array_map function take two argument one for php function "strtolower" and second one for array. May be we need to do this when we are working on big projects an.....

By Hardik Savani | April 5, 2016 | Category : PHP