La información del array no se recoge de una base de datos, lo obtengo leyendo un documento excel con PHPexcel.
No puedo editar el tema, pero quedaría así el contenido y no como está en el ejemplo:
$nodup_filter[0] Código HTML:
<tr>
<td>10/03/2013</td>
<td>19:00</td>
<td>10/03/2013</td>
<td>11:00</td>
<td>5</td>
<td>code 1</td> /* Estas son las columnas a comparar */
<td>1007 Additional information 5</td> /* Estas son las columnas a comparar */
<td>109 Additional information 6</td> /* Estas son las columnas a comparar */
<td>Additional information 7</td> /* Estas son las columnas a comparar */
<td>Additional information 8</td> /* Estas son las columnas a comparar */
<td> </td> /* Estas son las columnas a comparar */
</tr>
$nodup_filter[2] Código HTML:
<tr>
<td>29/06/2015</td>
<td>09:00</td>
<td>29/06/2015</td>
<td>12:00</td>
<td>3</td>
<td>code 1</td> /* Estas son las columnas a comparar */
<td>1007 Additional information 5</td> /* Estas son las columnas a comparar */
<td>109 Additional information 6</td> /* Estas son las columnas a comparar */
<td>Additional information 7</td> /* Estas son las columnas a comparar */
<td>Additional information 8</td> /* Estas son las columnas a comparar */
<td> </td> /* Estas son las columnas a comparar */
</tr>
El var_dump, en negrita lo que quiero comparar con cada posición del array, y si se encuentra repetida en alguna posición, entonces eliminar dicha posición entera. En este caso, se debería eliminar o bien la posición [0] o bien la posición [2] puesto que su parte en negrita coinciden.
array(11) {
[0]=> string(247) "<tr><td>10/03/2013</td><td>19:00</td><td>10/03/2013</td><td>11:00</td><td>5</td>
<td>code 1</td><td>1007 Additional information 5</td><td>109 Additional information 6 </td><td>Additional information 7</td><td>Additional information 8</td><td> </td></tr>"
[1]=> string(247) "<tr><td>29/06/2015</td><td>09:00</td><td>29/06/2015</td><td>12:00</td><td>3</td>
<td>Code 2</td><td>Additional information 1</td><td>Additional information 2</td><td>Additional information 3</td><td>Additional information 4</td><td> </td></tr> "
[2]=> string(252) "<tr><td>29/06/2015</td><td>09:00</td><td>29/06/2015</td><td>12:00</td><td>3</td>
<td>code 1</td><td>1007 Additional information 5</td><td>109 Additional information 6</td><td>Additional information 7</td><td>Additional information 8</td><td> </td></tr>"
[3]=> string(239) "<tr><td>09/06/2014</td><td>12:00</td><td>09/06/2014</td><td>13:00</td><td>6</td>
<td>code 3</td><td>1004 Additional information 10</td><td>102 Additional information 11</td><td>Additional information 12</td><td>Additional information 13</td><td> </td></tr>"
[4]=> string(244) "<tr><td>22/06/2015</td><td>09:00</td><td>22/06/2015</td><td>12:00</td><td>12</td>
<td>code 4</td><td>1008 Additional information 14</td><td>290 Additional information 15 </td><td>Additional information 16</td><td>Additional information 17</td><td> </td></tr> "
[5]=> string(235) "<tr><td>21/03/2012</td><td>23:00</td><td>21/03/2012</td><td>23:00</td><td>3</td>
<td>code 1</td><td>1011 Additional information 18</td><td>123 Additional information 19</td><td>Additional information 20</td><td>Additional information 21</td><td> </td></tr> "
[6]=> string(261) "<tr><td>01/02/2015</td><td>14:00</td><td>01/02/2015</td><td>14:00</td><td>6</td>
<td>code 7</td><td>1013 Additional information 22</td><td>178 Additional information 23</td><td>Additional information 24</td><td>Additional information 25</td><td> </td></tr> "
[7]=> string(253) "<tr><td>22/07/2015</td><td>15:00</td><td>22/07/2015</td><td>15:00</td><td>8</td>
<td>code 2</td><td>1407 Additional information 26</td><td>109 Additional information 27</td><td>Additional information 28</td><td>Additional information 29</td><td> </td></tr> "
[8]=> string(256) "<tr><td>17/06/2015</td><td>16:00</td><td>17/06/2015</td><td>16:00</td><td>3</td>
<td>code 3</td><td>1507 Additional information 30</td><td>109 Additional information 31</td><td>Additional information 32</td><td>Additional information 33</td><td> </td></tr> "
[9]=> string(290) "<tr><td>17/09/2015</td><td>18:00</td><td>17/09/2015</td><td>18:00</td><td>3</td>
<td>code 4</td><td>154 Additional information 34</td><td>110 Additional information 35</td><td>Additional information 36</td><td>Additional information 37</td><td> </td></tr> "
[10]=> string(234) "<tr><td>24/06/2015</td><td>20:00</td><td>24/06/2015</td><td>20:00</td><td>8</td>
<td>code 6</td><td>1777 Additional information 38</td><td>109 Additional information 39</td><td>Additional information 40</td><td>Additional information 41</td><td> </td></tr> "
}
Gracias!!!