Leo Jiang
Leo Jiang

Reputation: 26243

What is the notation used in references called?

I'm trying to find out how to read/write notations like this:

jQuery.getJSON( url [, data] [, success(data, textStatus, jqXHR)] )

or

string http_build_query ( mixed $query_data [, string $numeric_prefix [, string $arg_separator [, int $enc_type = PHP_QUERY_RFC1738 ]]] )

What are these called? I want to be able to Google it.

Upvotes: 0

Views: 35

Answers (1)

Kosta
Kosta

Reputation: 1867

These are method signatures. They define method name and number, type and order of method parameters. Parameters enclosed in [] are optional.

Upvotes: 1

Related Questions