Advertisement

There's no such thing as a stupid question, but they're the easiest to answer.
Login
Search

Advertisement

Search Search
Search for:
Tech Support Guy > > >

PHP Extracting and reformatting a string


(!)

aasmith26's Avatar
aasmith26 aasmith26 is offline aasmith26 has a Profile Picture
Computer Specs
Member with 37 posts.
THREAD STARTER
 
Join Date: Nov 2008
Location: Virginia
Experience: Advanced
03-Apr-2011, 09:40 PM #1
Lightbulb PHP Extracting and reformatting a string
OK Folks. Maybe that was a little difficult to understand. What i'm trying to do is take every other line, make it into a second variable.

i.e...
3929 needs to be $var_one[$i]
7658 needs to be $var_two[$i]
3922 needs to be $var_one[$i]
7649 needs to be $var_two[$i]

get it?

I'm sure theres some sort of string function that can be used to do this in a while loop for the count of words.

Thanks again!

Last edited by aasmith26; 04-Apr-2011 at 04:27 PM.. Reason: More Descriptive
As Seen On

BBC, Reader's Digest, PC Magazine, Today Show, Money Magazine
WELCOME TO TECH SUPPORT GUY!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.


Tags
explode, php, preg_match, string

(clock)
THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


WELCOME
You Are Using: Server ID
Trusted Website Back to the Top ↑

Content Relevant URLs by vBSEO 3.3.2