Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
0 answers
19 views

OpenTBS / PHP / PowerPoint Template - How can i duplicate a slide?

I am using a template to create a PowerPoint presentation with images created dynamically. I need to duplicate the slide using the same pattern from the slide in the template, how can I select the ...
user1600801's user avatar
0 votes
3 answers
119 views

Remove consecutive duplicates of a specified value from a 2d array

As part of a larger project, I'm receiving arrays in a form similar to this: $out = array( '2011' => ['Out', 'arrv'], '2012' => ['Out'], '2013' => ['Out'], '...
byteflush's user avatar
  • 148
3 votes
3 answers
129 views

Replace recurring values of a flat array with an empty string

I am populating an array of dates from two sources: an array of dates and a range of dates between two dates. $dateann = ['2024-08-16', '2024-08-11', '2024-08-16', '2024-09-16']; $period = ...
ghost_of_the_code's user avatar
0 votes
1 answer
48 views

Wordpress blog post categories redundantly displaying on the same post

Would love any help or advice you may have. Working on a site built with Wordpress that is also using a custom theme. Using Wordpress' CMS, the blog and post section is already set up. Post categories ...
E Devin Vander Meulen II's user avatar
0 votes
1 answer
50 views

PHP autoloader duplicate path

i want to learn autoloader in PHP but i loader duplicate my path to my files and its not working. <?php function myAutoLoader($class){ $directories = [ __DIR__ . "/classes/account/...
PHPdevel's user avatar
0 votes
0 answers
86 views

Display only unique values from a column of a 2d array [duplicate]

How can I remove the duplicate values in the foreach statement? Here is my $data array: $data = [ [ 'idx' => 1, 'id' => 1, 'mname' => 'test1', 'hname' =>...
Ginevian's user avatar
1 vote
6 answers
548 views

Combining two or more arrays into one array according to numeric keys without duplicates in subarrays

I have the following scenario made of arrays with numeric keys. I need to have an array which stores all the values in the arrays grouped by numeric key and without duplicates. I cannot make them ...
ilariaroglieri's user avatar
-1 votes
1 answer
56 views

Yii2 How do I use multiple array keys with the same value inside attributeLabels function

I am creating a column inside a table that can have 0, 1, 2 or 3. All these numbers have a certain value, in my case 0 = DOG, 1 = CAT, 2 = FISH, 3 = FROG. To get the names inside the table instead of ...
TLausie's user avatar
  • 141
0 votes
2 answers
86 views

How to Solve this Problem of Duplicates in csv file? Using PHP [closed]

I am using PHP. I am collecting a csv file from a server. On the server the daily file gets rows of data appended to it. I need to update my data-owner every ten minutes with ONLY the new data (if any)...
Dave's user avatar
  • 47
0 votes
1 answer
40 views

Multiple Joins Duplicating Rows from Other Tables

I am trying to join multiple tables, however some rows are 'duplicating'. This is because one of the tables I am joining has more rows than the others (the 'Goals' table). For exmaple, here are my ...
JahIsGucci's user avatar
1 vote
1 answer
59 views

Php Parse text to array with contain duplicate key

I want to parse text to array: text delimited with => First is the key and last is the value I will parse the text to an array. If a duplicate key is found, the value is an array with these keys. ...
Hida's user avatar
  • 174
0 votes
0 answers
135 views

PHP Fatal error: Duplicate type false is redundant in PHP 8.1

A PHP fatal error has occurred in php 8.1 with the above php error message for the following section of code. Would anyone have any suggestions on what part could be changed to eliminate the above ...
user21167050's user avatar
-1 votes
2 answers
63 views

php random numbers with delimiters without duplicate [duplicate]

I have php code below that creates random numbers when adding static number ;100 and divides numbers with |. It works well but creates duplicate numbers, how to make it prevent creating duplicate ...
Фероз Хамиди's user avatar
2 votes
0 answers
59 views

array_unique() for a 2d array, but based on a single column only [duplicate]

For instance [ ['foo' => 1, 'bar' => 2], ['foo' => 1, 'bar' => 3], ['foo' => 2, 'bar' => 4] ] I'd like to become [ ['foo' => 1, 'bar' => 2], ['foo' => 2,...
Codemonkey's user avatar
  • 4,829
0 votes
0 answers
183 views

prevent duplicate image upload by user error

each user uploads images to my website using php. sometimes they spam the exact same image dozens of times which drives me nuts. i am adding a column in the SQL db to add the md5 hash of every image ...
mov eax's user avatar
  • 41

15 30 50 per page
1
2 3 4 5
72