I’m writing project in CI and I have winamp plugin that pass values to CI thru URL (e.g. http://localhost/class/method/value1/value2/value3/… )
I have to pass 7 values but last 3 of them sometimes will be empty (e.g. http://localhost/class/method/value1/value2/value3/value4///value7 ) but that way value7 in CI assign as value5, and that’s not what I want.
My question :
Is there solution without adding extra symbol in winamp plugin like x:value7 and then removing x: and get only value itself.
If one of the values is empty mark it as empty, null, or 0 based on that this value represent:
localhost/class/method/value1/value2/empty/value4/empty/value6/value7make sure that method will react correctly on “empty”