Jump to content

Maanu

New Members
  • Posts

    3
  • Joined

  • Last visited

Maanu's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks for your reply... The dataset was already sorted in order, so thing is that only i need remove the repeated dataset to occur only once... The datas has to be echo only at the end of program... so implode and explode i cant use it correctly... The function i need is that only to check duplicate dataset and in return it should delete it and occur only one set of data....
  2. Thanks for your response.... I tried the following code but i executes only the partial set of data ... The data is given by myself..... function $dataset($mydataset , $array) { $array = array(); sort($mydataset); $data = array_unique($mydataset); foreach($array as $arr) { sort($arr); if(count(array_intersect($mydataset,$array)) == count($arr)) return true; } }
  3. Hi, please help me to solve my query... I was incurring a problem in executing a PHP code which executes 'n' number of data sets.. For example -- in the below shown outputs, I need to eliminate executing the 4th output which is similar (repeated data) to the 1st output, input output 4,4,5,6,5 4,4,5,5,6 4,4,5,7,5 4,4,5,5,7 4,4,5,7,6 4,4,5,6,7 4,4,6,5,5 4,4,5,5,6 Kindly send me the function details to execute it without repetition. Thanks a lot for your support! Regards, Maanu
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.