name="account[number][][1]
[
"account" => [
"number" =>[
[
"1" => <значение>
],
[
"2" => <значение>
],
[
"3" => <значение>
]
]
]
]
<form action="index.php" method="post">
<input type="text" name="account[surname][]">
<input type="text" name="account[address][]">
<input type="text" name="account[phone][]">
...
<input type="number" name="account[number][13][1]">
<input type="number" name="account[number][13][2]">
<input type="number" name="account[number][13][3]">
<button type="submit">Send</button>
</form>
<?php if ($a == 5): ?>
A равно 5
<?php endif; ?>
use GuzzleHttp\Client as GuzzleClient;
use GuzzleHttp\Exception\GuzzleException;
use GuzzleHttp\RequestOptions;
$user = [
'USER_LOGIN' => $this->getLogin(),
'USER_HASH' => $this->getKey()
];
try {
$response = $this->getClient()->request('Post', '/private/api/auth.php?type=json', [
'headers' => [
'User-Agent' => 'amoCRM-API-client/1.0',
'Content-Type' => 'application/json'
],
RequestOptions::JSON => $user
]);
} catch (GuzzleException | Exception $e) {
echo $e->getMessage() . \PHP_EOL;
exit;
}