在這裏我爆炸上面的字符串與,
並得到了陣列$ myArray。準備mysqli選擇使用爆炸
<?php
$myString = '1,2,3,4';
$myArray = explode(',', $myString);
print_r($myArray);
但我怎麼能使其成爲一個select語句
mysqli_query($con,"SELECT * FROM Persons where id = 'First part of Array'");
mysqli_query($con,"SELECT * FROM Persons where id = 'Second part of Array'");
mysqli_query($con,"SELECT * FROM Persons where id = 'Third part of Array'"); ..
在Foreach循環
謝謝,這是偉大的 – ABD