News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Gareth Heyes:
PHP nonalpha tutorial
August 22, 2012 @ 08:53:02

Gareth Heyes has another post to his site on the topic of "non-alpha PHP code", this time getting a bit more into the process and how his examples are parsed by PHP into more familiar functionality.

My first post on PHP non-alpha numeric code was a bit brief, in the excitement of the discovery I failed to detail in depth the process. I've decided to follow up with a tutorial and hopefully explain the process better for anyone wanting to learn or improve the technique. The basis of PHP non-alphanumeric code is to take advantage of the fact that PHP automatically converts Arrays into a string "Array" when using in a string context.

He includes some basic examples showing how, with just a combination of things like "+", "_" and "[" or "]" you can reproduce similar output to echoing out an array and use that "Array" output string to get to other strings (like the letter "B"). There's also a more lengthy example showing how to build up the string "print 1+1" and have it execute using this technique.

0 comments voice your opinion now!
interpretation nonalpha tutorial special character


blog comments powered by Disqus

Similar Posts

PHPBuilder.com: Using the Factory Pattern in PHP Applications

Shameer's Blog: PHP 5.3 : Practical look into Lambda functions and closures

IBM developerWorks: Cloud computing with PHP, Part 1: Using Amazon S3 with the Zend Framework

PHPMaster.com: Rapid Application Development with CakePHP

Josh Holmes' Blog: Creating a Simple PHP Blog in Azure


Community Events





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


introduction development symfony tips series bugfix zendserver interview podcast api framework release conference list threedevsandamaybe code laravel deployment language community

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