PHP passing session variables to array -


in following code snippet, need pass 2 value session somehow not able achieve it. beginner in php , code not written me need modify cover need.

i need pass 2 variables being used session posted previous page after submission of data class.php. first 1 $_session['data']['name'] , second 1 $_session['data']['lastname']

require_once 'admin/class.php';      $requests = array('version'  => '1',                                            'info'     => 'full name: ' + $_session['data1']['code1'] + ' ' + $_session['data']['lastname'],                       'amount'   => $amount                             );     

basically way passing variables array not correct. appreciated.

+ not concatenation operator in php. .. should -

'info' => 'full name: ' . $_session['data1']['code1'] . ' ' . $_session['data']['lastname']