名前付き関数のパラメータは、このような関数を書くとPHPでエミュレートできます。 function pythonic(array $kwargs)
{
extract($kwargs);
// .. rest of the function body
}
// if params are optional or default values are required
好奇心ではなく、メソッドを書く方法がありますか? public static MyType Parse(string stringRepresentation, [Internal] bool throwException = true)
{
// parsing logic here that conditionally throws an exception or returns null