> > function file_as_body($filename, $predefined_vars)
> > {
> > $ar = file($filename);
> > extract($predefined_vars);
> >
> > foreach ($ar as $number => $line)
> > {
> > eval("\$ar2[] = \"$line\";");
>
> Yikes, is there any reason that's not simply $ar2[] = $line;?
>
Because then the line would only be parsed until the first space..
i tried it without..
> Anyway, how does it give the same functionality as the suggest aprintf()?
oh, sorry. i didn't read the last 2 lines of the mail, where is
explained why not using plain eval.. ;)
>
> Zeev
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
Jo Giraerts
Computerprutser
Life BVBA
Interleuvenlaan 15A, 3001 LEUVEN, BELGIUM
icq:81939849, email:[EMAIL PROTECTED], ph0ne:+32(0)16 20 89 61
pgp-key available at: http://www.keyserver.net.
fingerprint: 81EE B1FD 88E2 A03A 4F49 6D8A 806E 2220 9C2F 918B
I've got these opium queens that move around my space,
I said it's waste not, want not,
I think I'll take another,
I'm holding all this pain that I'm trying to smother.
<branvan3000 -
Afrodisiac>
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]