Hello
I have a script in C# that is going to collect data from a physical device via USB. I have a list of commands that are sent to the device and the commands include a limited set of special characters $, comma, and ?
so a set of commands would look like

$moo?
$moo,1?
$foo
$foo,1,0

What I want to do is send the data collected by a command $moo? and the command "$moo?" as the key to my web server php script where I will receive it as

echo $_POST['$moo?'];
// outputs the data from the command sent

I have tested this and it does work on my php script, where I just created the vars with special chars and echoed them out...seem to work fine.

Is there any issues with using $,? in a named array for php? that I should be aware of

Thanks

    The key here is just a string, so special characters aren't all that special.

      Thanks I think, cryptic but I guess I get it. "special chars" are not special in a named array it's a string of any chars you want and you could have
      $_POST['$%##@$'] and php won't care although it would make the code hard to follow!
      Thanks

        Indeed, you could have [font=monospace]حرف خاص: C♯ | ᛡᛒ[/font] as a key

          Write a Reply...