equivalent of PHP arrays in XOJO

[code]function api_query($method, array $req = array()) {
// API settings
$key = ‘’; // your API-key
$secret = ‘’; // your Secret-key

    $req['method'] = $method;
    $mt = explode(' ', microtime());
    $req['nonce'] = $mt[1];[/code]

Would I use dictionary for that ? for $req = array()?
It seems like you can store a collection of string variables in this thing arbitrarily… PHP confusing

Yes, a dictionary could work…

Sub api_query(method As String, req As Dictionary)
  key = ""
  secret = ""
  
  req.Value("method") = method
  ...
  req.Value("nonce") = ...  
End Sub

Xojo has great documentation.
Have a look at this document: UserGuide-Fundamentals.pdf
Site 86

The language reference has an overview of the guides:
language reference

Dang I got told to ‘google it’ just kidding haha, thanks for the help guys!

You got both,
the fish and the knowledge of how to fish :slight_smile: