• Welcome to NamesLot.com Domain Name Forum

    NamesLot.com Domain Name Forum offers a fully open forum to discuss domain industry news and a 0% commission marketplace for you to buy and sell domain names.

    We have reorganized our Marketplace so now it is easier to get attention to your domain while it is also easier for buyers to find the right domain name.

    If you want us to add more threads to our marketplace, please contact us! Listing on our marketplace as always, 100% free! Register NOW or Login HERE!

Escaping PHP

Status
Not open for further replies.

chaneguye

New Member
Are there any drawbacks from escaping PHP? I swear I read somewhere (possibly on HTMLForums) that constantly escaping PHP would negatively effect execution time. So over the past few months I have been trying to escape PHP to output HTML as little as possible. There are some obvious cases where I use a ton of HTML with no need for PHP so I escape PHP. But this has led to my code being ugly with a ton of echo's and escaped quotes. And then when I view source on my HTML to see how that looks it is all screwed with little to no tabbing to differentiate levels.

Does anyone have any knowledge on this?
 
It is a technique to prevent PHP from ending your strings too early, or for making sure you have the correct string information returned.

<?PHP

$string = 'John's Car';
print $string;

?>
 
Status
Not open for further replies.

Members online

No members online now.

Forum statistics

Threads
19,833
Messages
69,830
Members
44,590
Latest member
KRS_Infotech
Active members today
4
New members today
1
New threads today
19
New posts today
19

Follow NamesLot on Twitter!

NamesLot proudly supported by

NamesLot proudly supported by

Top