Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7851529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:12:23+00:00 2026-06-02T19:12:23+00:00

so I have created a Shell command that is executed using PHP, and it

  • 0

so I have created a Shell command that is executed using PHP, and it returns something like this:

deathletsgo
lordhaigh
pampos
cheese510
TheLoneRanger6

And I’ve been trying to find a way to loop through and put each name in a different value in an array, so like Servers[0] would contain deathletsgo and Servers[1] would contain lordhaigh, etc, any ideas?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T19:12:24+00:00Added an answer on June 2, 2026 at 7:12 pm
    $string = "deathletsgo
    lordhaigh
    pampos
    cheese510
    TheLoneRanger6";
    $servers = explode("\n", $string);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a shell script that is created inside a php script (given full
I have created one table using the below command: create table Table1( Id int
I have created a BuildProcessTemplate that invokes a custom compiler. This compiler is normally
I have a script that runs from a newly created shell. OS is Red
I have a PHP script which executes a shell command: $handle = popen('python last',
I have created a shell script to backup my webfiles + database dump, put
I have created a basic site using ASP.NET routing according to Mike Ormond's example
How can I execute an SQL command through a shell script so that I
I need to execute shell command in python program (I have ubuntu). More specifically
I have a shell script that creates Firefox profiles and then uses them to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.