Last Updated: September 09, 2019
·
946
· jamart

Toggling 2 vars deleting 1 character

$var1 = "hello";
$var2 = "world";


/**/
echo $var1;
/*/
echo $var2;
/**/
// print "hello"

Deleting one star...

/*/
echo $var1;
/*/
echo $var2;
/**/
// print "world"

Retrieved from http://www.playterm.org/r/clever-code-toggling-1340621119

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Related Tags
#php
Did you know?

PHP applications still send a browser full of JavaScript. Hardening the server does not inventory the payment, analytics, and plugin scripts that run after the HTML is delivered.

Security insights from Cside