Arrays and Switches

#1

Hello -

I have a switch statement that contain arrays. Depending on the case, the result is a random message from the array.

The query(case) is sent from another server.

Switch

Case 1
Array

Case 2
Array

Case 3
Array

And so on.

I would like to be able to add/edit/delete cases or arrays, or messages within the different arrays from the other server. Currently I edit the code manually and reupload the updated script.

Thanks

#2

unset($array[$caseid])

#3

That could be made easier with a database…

#4

Yes, probably… still figuring things out with php right now.

#5

Interesting… so i send that format to my php page and it will change? Or do I need to set some code to read that and execute the command?