Re[2]: [PHP] text with $
| From: | Richard Davey | Date: | Mon, 09 May 2005 16:04:33 +0000 |
| Subject: | Re[2]: [PHP] text with $ | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-214789@lists.php.net to get a copy of this message | ||
Hello bala,
Monday, May 9, 2005, 3:51:21 PM, you wrote:
>> I have a text variable that contains "$" symbols, that when I pass it out PHP
>> thinks that the "$" mean that a variable name comes right after.
bc> use this
bc> $$text = "$text";
While I'm sure creating a variable variable is useful in lots of
circumstances, this isn't really one of them and doesn't solve the
original posters problem.
Best regards,
Richard Davey
--
http://www.launchcode.co.uk - PHP Development Services
"I do not fear computers. I fear the lack of them." - Isaac Asimov