MyBB Community Forums

Full Version: [Rresolved] Easy PHP ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

How can I print or echo this "$sample" without it (currently) being treated as a variable? I need the current output to be...
$sample

Thank you.

EDIT:
Duh...
echo "\$sample" Smile
You could probably use print, so the code would be
print($sample)
You might be able to echo it like this
echo $sample
(2009-01-16, 08:30 PM)seeker Wrote: [ -> ]Duh...
echo "\$sample" Smile

Or you can use single quotes since variables are not parsed in them:
echo '$sample';
Why is this thread unofficially marked as reproducible? I hope it wasn't something to get staff to view it quicker. Rolleyes
(2009-01-17, 01:43 AM)Rcpalace Wrote: [ -> ]Why is this thread unofficially marked as reproducible? I hope it wasn't something to get staff to view it quicker. Rolleyes

I thought [R] = resolved, sorry. Blush
No problem. I was just wondering. Toungue