Multi-dimensional array in php

Posted by pundit on Stack Overflow See other posts from Stack Overflow or by pundit
Published on 2010-03-23T23:38:14Z Indexed on 2010/03/23 23:43 UTC
Read the original article Hit count: 347

Filed under:
|

Hi all,

I would like to create a multi-dimensional array with two variables but don't know how.

This is what i have so far;

 $_SESSION['name'][] = $row_subject['name'];
 $_SESSION['history'][]= $_SERVER['REQUEST_URI'];

I wanted to know if this is possible?

$_SESSION['name'][] = $row_subject['name'],$_SERVER['REQUEST_URI'];

i want to get the name of a programme which is generated via a data base and also to retrieve the url. What i am actually doing once the name is retrieve, i want to make that a link which the url would be necessary.

any help would be appreciated.

Thanks

© Stack Overflow or respective owner

Related posts about php

Related posts about array