[ create a new paste ] login | about

Link: http://codepad.org/dYr0IxMI    [ raw code | output | fork | 8 comments ]

PHP, pasted on Feb 13:
1
2
3
4
5
6
7
<?php

for($i=0;$i<=2;$i++){
${"file" . $i} = 'var: ' . $i;
}

var_dump($file0);


Output:
1
string(6) "var: 0"


Create a new paste based on this one


Comments:
posted by johnhardy on Apr 25
sdf
reply
posted by johnhardy on Apr 25
sdf
reply
posted by johnhardy on Apr 25
sdfds
reply
posted by sdfsdfsdf on Nov 12
dfdsf
reply
posted by sdfsdfsdf on Nov 12
sdfsdf
reply
posted by sdfsdfsdf on Nov 12
sdfdsf
reply
posted by sdfsdfsdf on Nov 12
sdfdf
reply
posted by admin on Jun 17
ghggg
reply