Questions tagged [array-difference]

Used for questions concerning the difference between arrays. For example, where elements in two arrays differ from each other, or subtracting the content of one array from another. Since the tag can be broadly applied to any programming language that supports arrays, use use one or more additional tags in order to help identify the specific language the question relates.

An array is a data structure that encompasses a group of elements. When working with arrays there can be a requirement to determine the difference between two or more arrays, and this tag is for questions relating specifically to finding that difference.

The difference between arrays can be determined in a number of ways, including finding where elements within the array differ, and can include operations such as subtracting the contents of one array from another to produce an outcome.

273 questions
1
vote
2 answers

How to remove given item from comma separated list?

$list = 'Mon,Tue,Wed,Thrs,Fri,Sat,Sun'; Is there a regex or a function that will work as follows? 1)"Tue" return string ->"Mon,Wed,Thrs,Fri,Sat,Sun" 2)"Thrs, Mon" return string ->"Tue,Wed,Fri,Sat,Sun" 3)"Sun,Wed,Fri" return string…
112233
  • 2,406
  • 3
  • 38
  • 88
1
vote
1 answer

Determining Difference Between Items On-Hand and Items Required per Project in Access 2003

I'm usually a PHP programmer, but I'm currently working on a project in MS Access 2003 and I'm a complete VBA newbie. I'm trying to do something that I could easily do in PHP but I have no idea how to do it in Access. The facts are as…
1
vote
1 answer

Why does array_diff act differently when array from an input form?

I have this input form: