Are there any workarounds or tricks to handle special characters in function names, such as the minus sign, when using SoapClient in PHP?

When using SoapClient in PHP, special characters in function names, such as the minus sign (-), can cause issues. One workaround is to use the __soapCall method instead of directly calling the function with the special character in its name. This allows you to specify the function name as a string parameter, bypassing any naming conflicts.

$client = new SoapClient("http://example.com/api?wsdl");

$functionName = "my-special-function-name";

$response = $client->__soapCall($functionName, array($params));