| | #1 |
| HyperActive Warrior Join Date: 2010
Posts: 111
Thanks: 5
Thanked 4 Times in 4 Posts
|
I need a little help with how to print this session variable to screen the password field is the one im trying to echo out. Array ( Object ( [path] => Array ( [0] => Array ( [post] => Array ( [password] => 123456 ) ) ) ) ) |
| |
| | #2 |
| Warrior Member War Room Member Join Date: 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
Is there a particular piece of software you are using or is it custom coded? From the code you posted, the password is in an object. You'll need to look through the code to see where the object was instantiated... something like: PHP Code: Then to view the variables (object properties) you can use syntax like: PHP Code: HTH |
| |
| | #3 | |
| Active Warrior Join Date: 2011
Posts: 31
Thanks: 0
Thanked 1 Time in 1 Post
|
I think this syntax will work
| |
| |
| | #4 |
| HyperActive Warrior War Room Member Join Date: 2009 Location: Berwick, Melbourne, Australia
Posts: 156
Thanks: 5
Thanked 47 Times in 28 Posts
|
It's an array of a multidimensional array object...(try typing that out quickly) Once you get the object out of the array... PHP Code: |
|
Great Success is built from many little successes! http://www.timbrownlaw.com - My Wee Part of the World. http://www.LookingOverMyShoulder.com | |
| |
| | #5 |
| Active Warrior Join Date: 2011
Posts: 33
Thanks: 0
Thanked 1 Time in 1 Post
|
clean output in the screen: <pre> <?php print_r($myobject->password); ?> </pre> |
| |
| | #6 |
| Warrior Member Join Date: 2011
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
|
or you can use var_dump($myobject->password) as well
|
| |
|
| Bookmarks |
| Tags |
| print, session, variable |
| |