print $text as text ($text is not a variable)


#1

I want to do this

[php]
print("$text")
[/php]

but it just try’s to print the variable $text which doesn’t exist


#2

Well, just “escape” the question mark, like this: print("$text");
Or, even print("$" . “text”); (so the variable does not exist.)


#3

Thanks, sorry for my silly questions, I’m completely new programming in all languages, only started this week… ill remember this one.

MARKED SOLVED


#4

LOL, no question is silly! Just sometimes it is right in front of your face… Always nice to hear “SOLVED!”

CYA in the bitstream…