Jump to content

[SOLVED] Php Array


zackcez

Recommended Posts

I would like to make it so I don't have to define something like this a million times:

$PlayerXp["Bla"] = getXp(Bla);

And simply make it easier by something like this:

$PlayerXp[string Skill] = getXp(Skill);

I'm not sure exactly how to explain it tbh :s....So I'll try comparing it to java :P

public int PlayerXp[]

Link to comment
https://forums.phpfreaks.com/topic/115776-solved-php-array/#findComment-595191
Share on other sites

Archived

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

×
×
  • Create New...

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.