Page 1 of 1

ascii-php

Posted: Sat Jul 19, 2003 11:59 am
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

Posted: Mon Jul 21, 2003 3:35 am
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