I have these 2 arrays:
array(
100 => 'this is some text',
161 => 'prefix1 : this is some text',
224 => 'some other text',
356 => 'prefix2 : some other text',
// ...
)
and
array(
0 => 'prefix1',
1 => 'prefix2',
// ...
)
The first array should not contain the prefixes, so I would like to identify the errors like this as a result:
array(
161 => 'prefix1 : this is some text',
356 => 'prefix2 : some other text',
// ...
)
strposto check if the current text from the first array starts with the current prefix, and if so, add the text to your error array.