fork(4) download
  1. <?php
  2. $array1 = array(
  3. "http://content-available-to-author-only.com/photo-30666517_315641240",
  4. "http://content-available-to-author-only.com/photo-63314435_318050082"
  5. );
  6. $array2 = array(
  7. "photo-30666517_315641240",
  8. "photo-163314435_318050082"
  9. );
  10. $out=array();
  11. foreach($array2 as $val) {
  12. foreach($array1 as $value) {
  13. if(strpos($value, $val)) {
  14. continue 2;
  15. }
  16. }
  17. $out[]=$value;
  18. }
  19. print_r($out);
  20.  
Success #stdin #stdout 0.01s 20520KB
stdin
Standard input is empty
stdout
Array
(
    [0] => http://content-available-to-author-only.com/photo-63314435_318050082
)