MyBB Community Forums

Full Version: Testing transparent code
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi


[transparent]sup[/transparent]
Not all mycodes on the forum are installed here. Most aren't.
* Alex Smith thinks mark missed it.
(2012-10-14, 06:16 AM)kamz89 Wrote: [ -> ]Hi


[transparent]sup[/transparent]

* Lo. did miss it

(2012-10-14, 06:16 AM)kamz89 Wrote: [ -> ]Hi

Hi there.
<?php
echo "Test!"; ?>
This is brilliant. I will use it all the time, now.
* Odin A. likes this development.
(2012-10-14, 01:38 PM)Odin of Aesir Wrote: [ -> ]
<?php
echo "Test!"; ?>
This is brilliant. I will use it all the time, now.
* Odin of Aesir likes this development.

You can omit the closing PHP tag, and you should use single quotes instead of double quotes as there aren't any variables to parse so the PHP interpreter has to do more work for no reason. Shy Toungue
Yeah, yeah, good practices and all that nonsense. I'll get to it later when I actually write something other than simple 'Hello World'-type scripts.
(2012-10-14, 06:19 PM)Odin of Aesir Wrote: [ -> ]Yeah, yeah, good practices and all that nonsense. I'll get to it later when I actually write something other than simple 'Hello World'-type scripts.

It's better to learn good practices from the start. It's hard to break bad habits. Wink
I know. But, aren't I supposed to use closing tags when the PHP is surrounded by other, non-PHP?

Also, didn't anyone notice how cleverly I applied what Nathan told me?
Pages: 1 2