<?php
$array1 = array(1,2,3,'');
// Testar cenário 1
$wheresql = "";
$wheresql = " WHERE ad_id NOT IN (".$ad_ids.") ";
}
echo "Cenário 01: " . $wheresql . PHP_EOL;
// Testar cenário 2
$wheresql = "";
$wheresql = " WHERE ad_id NOT IN (".$ad_ids.") ";
}
echo "Cenário 02: " . $wheresql . PHP_EOL;
// Testar cenário 3
$wheresql = "";
$wheresql = " WHERE ad_id NOT IN (".$ad_ids.") ";
}
echo "Cenário 03: " . $wheresql . PHP_EOL;
PD9waHAKCiRhcnJheTEgPSBhcnJheSgxLDIsMywnJyk7CiRhcnJheTIgPSBhcnJheSgnJyk7CiRhcnJheTMgPSBhcnJheSgxLDIsMyk7CgoKLy8gVGVzdGFyIGNlbsOhcmlvIDEKJHdoZXJlc3FsID0gIiI7CiRhZF9pZHMgPSBydHJpbShpbXBsb2RlKCcsJywgJGFycmF5MSksICIsIik7CmlmICghZW1wdHkoJGFkX2lkcykpIHsKCSR3aGVyZXNxbCA9ICIgV0hFUkUgYWRfaWQgTk9UIElOICgiLiRhZF9pZHMuIikgIjsKfQplY2hvICJDZW7DoXJpbyAwMTogIiAuICR3aGVyZXNxbCAuIFBIUF9FT0w7CgoKLy8gVGVzdGFyIGNlbsOhcmlvIDIKJHdoZXJlc3FsID0gIiI7CiRhZF9pZHMgPSBydHJpbShpbXBsb2RlKCcsJywgJGFycmF5MiksICIsIik7CmlmICghZW1wdHkoJGFkX2lkcykpIHsKCSR3aGVyZXNxbCA9ICIgV0hFUkUgYWRfaWQgTk9UIElOICgiLiRhZF9pZHMuIikgIjsKfQplY2hvICJDZW7DoXJpbyAwMjogIiAuICR3aGVyZXNxbCAuIFBIUF9FT0w7CgoKLy8gVGVzdGFyIGNlbsOhcmlvIDMKJHdoZXJlc3FsID0gIiI7CiRhZF9pZHMgPSBydHJpbShpbXBsb2RlKCcsJywgJGFycmF5MyksICIsIik7CmlmICghZW1wdHkoJGFkX2lkcykpIHsKCSR3aGVyZXNxbCA9ICIgV0hFUkUgYWRfaWQgTk9UIElOICgiLiRhZF9pZHMuIikgIjsKfQplY2hvICJDZW7DoXJpbyAwMzogIiAuICR3aGVyZXNxbCAuIFBIUF9FT0w7