Jump to content

[SOLVED] PHP object


rondog

Recommended Posts

I am storing an array in a session. Is it possible to call that session by an object name like (This is how objects work in actionscript..not sure how they do in php):

$_SESSION['userInfo'].username;

$_SESSION['userInfo'].email;

 

rather than:

$_SESSION['userInfo'][0];

$_SESSION['userInfo'][1];

Link to comment
https://forums.phpfreaks.com/topic/165813-solved-php-object/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.