Skip to main content
0 votes
1 answer
77 views

I am getting a list categories names based on which tag is selected in WordPress, the code all works and returns a list of categories but I can't get the code to stop the duplicate category names. ...
Craig's user avatar
  • 195
0 votes
1 answer
76 views

I am revising the question I asked before that was not clear at all. I am very much new to PHP programming. I have a table in postgres: | gene_name | description| | gene1 | kuku | | gene1 ...
Alex's user avatar
  • 31
1 vote
0 answers
40 views

i have two tables, one separates tags by comma, the other converts similar tags to single tags. example: The exploded tags table I got in the database: <?php foreach ($result as $row) { ...
Şerif Arat's user avatar
-1 votes
1 answer
38 views

My function store elements in an array like this: array ( 0 => array ( 'name' => 'Roger', 'id' => '1', ), 1 => array ( 'name' => 'David', 'id' => '2', ),...
SOUserNumber613's user avatar
0 votes
2 answers
66 views

I am trying to create an array where I need to filter with a certain key (fileid) so that it returns only unique keys for parent array. Here is what I have.. Array ( [ABCD] => Array ( ...
Abhik's user avatar
  • 674
0 votes
1 answer
51 views

I have this array with certain brand_ids, within these brands I have an array of dates in which a sale occured but these are based on the products in sale so they may appear multiple times on the same ...
user avatar
1 vote
2 answers
1k views

I want delete duplicate array from two arrays, but just show one of array, how I can do it ? I want result [1, 4] const arr1 = [1, 2, 3, 4]; const arr2 = [2, 3, 5, 6] function arrayUniq(arr1, arr2) { ...
mazbeib's user avatar
  • 11
-1 votes
2 answers
121 views

I have been racking my head trying to think if there is a simpler method to grabbing the unique objects out of an array, but can't find any documentation or confirmation that anything exists that will ...
Zak's user avatar
  • 7,581
0 votes
2 answers
136 views

Using PHP, I have an array like this: Array 1 [ {epid: "123", hash: "xxxxxx"}, {epid: "456", hash: "xxxxxx"}, {epid: "789", hash: "xxxxxx&...
Keith Petrillo's user avatar
1 vote
0 answers
170 views

Merge a multi-dimensional array to the custom array as required. Need the solution in PHP (using in Laravel-8). Custom array is needed to make rows for creating an excel file using Spreadsheet. This ...
Vaibhav Jain's user avatar
-1 votes
2 answers
904 views

I have a fairly complex MySQL call that results in simple output something like this; name timestamp comm1 comm2 counter Bill 2021-04-18 19:31:00 data data 1 Bill 2021-04-18 19:32:...
Keith D Kaiser's user avatar
0 votes
1 answer
108 views

I have a problem with array_unique() in PHP. Here is my code: $filterGroupsArray = ['', 'a', 'a', 'b']; print_r($filterGroupsArray); array_unique($filterGroupsArray); print_r($filterGroupsArray); The ...
broxyl's user avatar
  • 37
-1 votes
1 answer
380 views

I am getting duplicate data in an array and that data is storing in my DB. I am using array_unique to refine the duplicate data but it is not working. Please tell me is there any other way to make ...
Umair Basit's user avatar
0 votes
1 answer
53 views

my code is : $a = <<<'EOD' function makeItBIG($a_lot_of_names) { foreach($a_lot_of_names as $the_simpsons) { $BIG[] = strtoupper($the_simpsons); } return $BIG; } $a_lot_of_names = [...
RsF's user avatar
  • 21
0 votes
1 answer
133 views

I have an object which contains 3 arrays, any of which may be empty, it is feasible all three can be empty, so I need to handle that requirement too. Here's an example of the object: { "...
Kaleb Thompson's user avatar

15 30 50 per page
1
2 3 4 5
12