PHP 8.3.4 Released!

SoapParam::__construct

(PHP 5, PHP 7, PHP 8)

SoapParam::__constructConstructeur SoapParam

Description

public SoapParam::__construct(mixed $data, string $name)

Construit un nouvel objet SoapParam.

Liste de paramètres

data

Les données à passer ou à retourner. Vous pouvez passer ce paramètre directement en tant qu'une valeur PHP, mais dans ce cas, il sera nommé paramN et le service SOAP ne le comprendra pas.

name

Le nom du paramètre.

Exemples

Exemple #1 Exemple avec SoapParam::__construct()

<?php
$client
= new SoapClient(null,array('location' => "http://localhost/soap.php",
'uri' => "http://test-uri/"));
$client->SomeFunction(new SoapParam($a, "a"),
new
SoapParam($b, "b"),
new
SoapParam($c, "c"));
?>

Voir aussi

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top