[ create a new paste ] login | about

Link: http://codepad.org/pgmde2et    [ raw code | output | fork ]

PHP, pasted on Nov 9:
1
2
3
4
5
<?php
$step = 'quest';
$ans = array(1,2,3,4);
$questions = array($step => $ans);
var_dump($questions);


Output:
1
2
3
4
5
6
7
8
9
10
11
12
13
array(1) {
  ["quest"]=>
  array(4) {
    [0]=>
    int(1)
    [1]=>
    int(2)
    [2]=>
    int(3)
    [3]=>
    int(4)
  }
}


Create a new paste based on this one


Comments: