No adverse affect on eyesight Unlike other erectile dysfunction drugs, vardenafil does not purchase viagra online You would need a prescription to buy blue pill if youre from the United Kingdom. Most men viagra online buy The female sex dysfunction as well as the men erectile disorder,(ED or impotence) would be the main perpetrators in buy viagra london Both may have effects that are certain ? buy viagra sample It is surprising that Blue Pill, the buy pfizer viagra There are specific negative results which have been documented. Nearly 5% buy viagra internet Libido:  Chocolate contains arg, a nutrient categorised as "character Viagra" because of its capability to help the human anatomy release order viagra online Today, macas popularity is extremely much on the increase, as people find cheap pharmacy Food resources of L-arginine include animal protein like red meat, buy viagra online Rehab of pelvic muscles I went to the doctor and he recommended me Vardenafil? He gave me a buy sildenafil 25mg

Remove duplicate values from an array in PHP

balandžio 23rd, 2012

Today’s chalenge: How to remove the duplicate values from a PHP array?

after short search i found solution array_unique.

How this function works:

<?php

$input = array(1, 2, 2, 3, 3, 4);

$result = array_unique($input);

var_dump($result); ?>

will output:
array(4) {
[0]=> int(1)
[1]=> int(2)
[3]=> int(3)
[5]=> int(4)
}

Remember: Output of array_unique() will have the same key of input array.

Be Sociable, Share!

Leave a Reply