ascii-php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
vladacar
Forum Newbie
Posts: 1
Joined: Sat Jul 19, 2003 11:59 am

ascii-php

Post by vladacar »

8O

hi all...
i have java applett that generates ascii images in the form of html. so, i get a text object. i would like if i can get every line of that object become variable so i can use that variable in php..

for example:
this is the text
1. fasdasfdastwawa
2. 4atatgfadsgfasgfa
3. fgdasfasas

so, i would like to have this situation automatically:

var1= 1 line
var2= 2 line..

is it possible to do that in php
thanks
v
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

If you saved the text to a text file then you could use the file() function to get each line into its own array element.

Mac
Post Reply