iGeek Blog

Jignesh Patel's Blog

categories

recent posts

recent comments



I found a PHP code sample that somebody had written as following line of code:


   1: <?php
   2: System.out.print($result);
   3: ?>

What you say about that code ?
This actually works in php. It will not print anything, but It doesn;y produce any error.
It just sees them as constants which do not exist and are interpreted as strings, and apparently, this is a valid PHP statement as well:

   1: <?php
   2: "this"."is"."a"."string";
   3: ?>

0 comments

Post a Comment