Thursday, September 6, 2012

Composition of Variables


Amazing trick by PHP
You can use composition of variables. I don’t how it can be useful, but the following code is valid:
<?php
/* 
Online PHP Examples with Source Code
website: http://4evertutorials.blogspot.in/
*/

${‘a’ . ‘b’} = ‘c’;
echo $ab; // it will output c

?>

No comments:

Post a Comment