Thursday, September 6, 2012

Composition of Variables

9/06/2012


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

?>

helpful? Share this

The Editorial Team of 4everTutorials consists of a group of PHP Professionals.

0 comments:

 

© 2014 4everTutorials. All rights resevered.

Back To Top