News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
Ivo Jansch's Blog:
System.out.print in PHP
March 09, 2007 @ 07:12:44

Ivo Jansch discovered something interesting by way of an applicant's resume - a hidden "trick" that PHP pulls on the user when they try to use a Java-like syntax with System.

So yesterday I was reviewing a code sample that a job applicant had written during a test and I encountered the following line of code: It's not hard to guess what his background was :), but I was initially stunned that this actually works in php.

After a little investigating (and ruling out the Java Bridge), Ivo found that the line was being interpreted literally and was just being handled as a string instead of a constant. He gives two other examples to help with clarification.

1 comment voice your opinion now!
constant string java bridge notice constant string java bridge notice




Similar Posts

Mikko Koppanen's Blog: Typesetting

Sameer's Blog: Easy way to build GET query strings in php

Alexander Netkachev's Blog: Practical PHP events: The Java way

IBM developerWorks: Integrating Java and PHP in WebSphere sMash

Michael Kimsal\'s Blog: Bizarre PHP behaviour


Community Events







Don't see your event here?
Let us know!


developer code ajax database book conference job application PHP5 package security zendframework release releases mysql PEAR framework example zend cakephp

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework