Jump to content

Archived

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

XtremeTeam

T_String Error! Please Help

Recommended Posts

Can someone please tell me what is wrong with the code below? It gives me a T_String Error.
---------------
$randimnumr = rand(0,count($rarray1)-1);

print $rarray[$randimnum];
---------------

Share this post


Link to post
Share on other sites
For starters, your variable is called $randimnum[color=red][b]r[/b][/color] and you refer to it as $randimnum (note the missing r off the end).

Regards
Huggie

Share this post


Link to post
Share on other sites
The (other) error is caused by lines before those you posted. Show us some code, say 8-10 lines ending with those two.

Share this post


Link to post
Share on other sites

×

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.