| |
|
|
| |
PHP RuneScape stat
function
Next Code
you use it
like this:
$variable = getStats("RussellReal");
and you will get a two dimensional array.
$variable[$skill][$aspect];
$aspect would be "Level" or "Exp" or "Rank"
so for example: $variable["Strength"]["Level"];
will return 89, which is RussellReals
Strength Level :P
not really for looping through the values,
unless you use foreachs like so:
foreach ($variable as $skill => $v) {
$line = $skill;
foreach ($variable[$skill] as $aspect =>
$data) {
$line .= " ".$aspect.": ".$data;
}
echo $line."\n";
}
will print a readable version of the
multidimensional array. :)
will return "false" if the username doesn't
exist. and somewhere in the aspects of the
second dimension of the arrays will be Not
Ranked. for whichever skill the user isn't
ranked in. Enjoy :)
Go
to Homepage
Contact Us
|
|
| |
By Krishna Eydat & Mahmood Bina |
|
Download free PHP codes and scripts, help with
forums, samples and examples of a professional website with PHP
design, you can use Javascript codes and HTML scripts and tangs.
PHP tutorials and lessons step by step, use PHP free script
,script ,source ,code generator ,sample code ,examples ,script
code ,open source, free source ,forms ,code editor ,forum ,array
,function ,website codes ,include ,Web design, webmaster
,protect code , email , PHP forum codes, forum scripts , dynamic
code, PHP helps
|