The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
I've retrieved data from an XML source which has generated the following associative array layout:
Code:
Array (
[xml attr] => Array (
[version] => 1.0 [encoding] => utf-8
)
[xml] => Array (
[status] => logged
[user] => Array (
[sid] => xxxxxxxxxxxxxxxxxxxxxxxxxxxx
[login] => aaaaaaaaaaaaaaaaaaaaa
[email] => aaaaaaaaaaa@gmail.com
[access_id] => 123456
[user_id] => 123456
[space_amount] => 999999999
[free] => 9
[space_used] =>
)
)
)
Code:
$box_data[xml][user][sid] However, I get: Array[user][sid] displayed. Am I missing something? When I try this through a seperate PHP page that simply echos that value of the array it displays how you'd expect. What am I missing? I'd be very gratful if you can help out. ![]() I've just this minute answered my own question. It may be worth modifying the "Custom pages" How-To to reflect that: If you wish to display a multidimensional array then treat it like an object, e.g. Code:
{$box_data['xml']['user']['sid']}
Use curly braces. Use single quotes. |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|