Jump to content

Search the Community

Showing results for tags 'implode explode list'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 1 result

  1. Hi people, I'm still going through the long learning curve of understanding of PHP so please go easy on me! Right now I'm going through a course to help me on my way and i have recently gone through a lesson which briefly covered the 'implode" and 'explode' functions in regards to an array. Anyway, I have been thinking and was wondering if I could somehow use PHP to clear up some data for my own personal use. What i mean is, I have a list of data, lets say it looks like this: #John Smith 1.5.55.1.101 #Ben Chen 1.7.8.55.4.1 #Tim Roberts 155.587.5.5 #Terry Noble 9.44.47.7.6 #Harry Flint 9.5.44.10.7 ...And so on. Maybe about 100 entries in total. Is there a way i could write a php script that i can add this data to or that the script could fetch this data and then remove all the information except for the numbers at the bottom of each entry and then echo the result to my local host so it looks something like this: 1.5.55.1.101 1.7.8.55.4.1 155.587.5.5 9.44.47.7.6 9.5.44.10.7 This is really just an expirement, if it is possible I would love to know where to start, so i can start playing around with this. Again If it is possibe what i would like to do eventually is add a function that removes duplicates. The list of data is not on a database or anything, its just on a text file and I dont really wanna put it on a database. I guess i could add it to the top of my php script right as some kind of string? Or am i going off track? I hope some one can point me in the right direction, so I have something to work with and understand. Thanks in advance guy's and girls.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.