Tagged articles
2 articles
Page 1 of 1
php Courses
php Courses
Jul 23, 2025 · Fundamentals

Mastering Function Overloading in C++: When and How to Use It

Function overloading in C++ lets you define multiple functions with the same name but different parameter lists, enabling the compiler to select the appropriate version based on argument types, while highlighting rules, implicit conversions, pitfalls, and comparisons with function templates.

CCode Examplesfunction overloading
0 likes · 6 min read
Mastering Function Overloading in C++: When and How to Use It
php Courses
php Courses
Jan 2, 2024 · Backend Development

PHP Function Overloading Analysis and Practical Pseudo‑Overloading Techniques

The article explains why PHP cannot support true function overloading due to its weak typing, then demonstrates three practical techniques—default parameters, using func_get_args with call_user_func_array, and the __call magic method—to achieve pseudo‑overloading with illustrative code examples.

Magic MethodPHPfunction overloading
0 likes · 4 min read
PHP Function Overloading Analysis and Practical Pseudo‑Overloading Techniques