Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
そこで、PHP を使用して実行されるシェル コマンドを作成しました。次のような結果が返されます。
deathletsgo lordhaigh pampos cheese510 TheLoneRanger6
そして、ループして各名前を配列内の異なる値に入れる方法を見つけようとしてきたので、Servers[0]deathletsgoServers[1]が含まれたり、lordhaigh が含まれたりするなど、何かアイデアはありますか?
Servers[0]
Servers[1]
ありがとう!
$string = "deathletsgo lordhaigh pampos cheese510 TheLoneRanger6"; $servers = explode("\n", $string);