Re: [PHP] Wath�s wrong?
I think that one of the issues is that when you assign a variable using "" instead of '', it will auto-replace your variable names inline. I don't know, but I think you should be escaping the $ before the <. --- Jo�o C�ndido de Souza Neto <[EMAIL PROTECTED]> wrote: > Hi everyone. > > I have a var that gets the follow string: > > $var="R$ color=\"".GE_COR_VALOR."\">".number_format($con->result['preco_v'],2,",",".").""; > > When a print it i receive the follow result: > > R$ 150,00 > > Someone knows wath�s happening here? > > Thanks. > > -- > Jo�o C�ndido de Souza Neto > Curitiba Online > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Wath´s wrong?
Jay Blanchard wrote: [snip] I have a var that gets the follow string: $var="R$color=\"".GE_COR_VALOR."\">".number_format($con->result['preco_v'],2,",",".").""; When a print it i receive the follow result: R$ 150,00 Someone knows wath´s happening here? [/snip] Yes, you printed out your $var. Did you expect something else? I think he's referring to the two s which magically appeared before the tag. --Daniel -- Sparse - a new way to write MySQL-based programs with little to no actual programming. Save yourself time and effort! http://sparse-php.sourceforge.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Wath´s wrong?
[snip] I have a var that gets the follow string: $var="R$".number_format($con->result['preco_v'],2,",",".").""; When a print it i receive the follow result: R$ 150,00 Someone knows wath´s happening here? [/snip] Yes, you printed out your $var. Did you expect something else? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php