My Blog

My WordPress Blog

My Blog

My WordPress Blog

Day: October 4, 2024

Call by Value

By default, PHP uses the “call by value” mechanism for passing arguments to a function. When a function is called, the values of actual arguments are copied to the formal arguments of the function’s definition. During the execution of the function body, if there is any change in the value of any of the formal arguments, […]

Functions

Like most of the programming languages, a function in PHP is a block of organized, reusable code that is used to perform a single, related action. Functions provide better modularity for your application and a high degree of code reuse. PHP supports a structured programming approach by arranging the processing logic by defining blocks of […]

Scroll to top