What is the significance of the minus sign in PHP function names and how does it affect Soap calls?
The minus sign in PHP function names is used to indicate that the function is a private method within a class. When making Soap calls, if the function name contains a minus sign, it can cause issues as Soap does not support calling private methods directly. To solve this issue, you can modify the function name to remove the minus sign or make the function public.
class Example {
private function my_private_function() {
// code here
}
// Change the function to public
public function my_public_function() {
return $this->my_private_function();
}
}