Re: $hello ?

From: Date: Wed, 02 May 2001 23:18:11 +0000
Subject: Re: $hello ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-51136@lists.php.net to get a copy of this message
sorry, in method 1 i meant: eval() instead of echo() ""elias"" <elias_bachaalany@yahoo.com> wrote in message news:9cp0io$uuf$1@toye.p.sourceforge.net... > hello, > > i got myfile.txt saying: > i say: $hello > > now i write a script like: > $hello = "hello world"; > $lines = join("\n", file("myfile.txt")); > method 1: > ======= > echo("\$text = \"\$lines\";"); > var_dump($text); > > method 2: > ======== > $temp = $var; > $text = $temp; > > > none of the method assigns the value "i say: hello world" to $text > they both still parse $text to "i say: $hello" > > How can i solve this, I know it's silly,...but i surrender at the moment... > > -elias > http://eassoft.cjb.net > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#51136) next »