Happy birthday, Array! You're Birthday[x] years old!

SkyHog

Touchdown! Greaser!
Joined
Feb 23, 2005
Messages
18,433
Location
Castle Rock, CO
Display Name

Display name:
Everything Offends Me
Home screen shows todays birthdays as "Array"

I actually looked for a user named array before it clicked. lol
 
Mine too,.. I've logged out and back in, checked my Java and Browser for updates.... still Array shows up.
 
"You can call me ArRay. You can call me ArRay Jay....but you doesn't have to call me Johnson."
 
I still don't get it. :redface:

My guess is that vBulletin uses an array of objects to store birthday information.

In most programming languages, to refer to an array, you'd use:

arrayName[x] where x is the record number you wanted to bring up.

The main screen says "Array" in the birthday field when there's no birthdays on a given day. I'm guessing that's why (did someone actually name an array "array"?)
 
Nick,

If you treat an array in PHP as if it were a variable (you don't specify a key) you'll get a response of "Array". For example the following:
Code:
<?php
$names[]='nick';
$names[]='steve';

echo($names);
?>
Would return "Array".
Of course if you loop through it, you can get the desired result
Code:
<?php
$names[]='nick';
$names[]='steve';

foreach($names as $name) {
   echo("$name </ br>");
}
?>
Would return:
nick
steve

I'll take a look at it when I have a chance....
 
Last edited:
"You can call me ArRay. You can call me ArRay Jay....but you doesn't have to call me Johnson."

Tears.............in.................my..............eyes. :rofl::rofl::rofl:

My grandfather used to say that all the time.
 
Back
Top