Tagged articles
5 articles
Page 1 of 1
php Courses
php Courses
Dec 13, 2025 · Backend Development

When to Use Pass‑by‑Value vs Pass‑by‑Reference in PHP Functions

This article explains the differences between pass‑by‑value and pass‑by‑reference in PHP, outlines their characteristics, provides code examples for each, and offers guidance on choosing the appropriate method based on safety, memory usage, and performance considerations.

Function ParametersPHPPass by Reference
0 likes · 3 min read
When to Use Pass‑by‑Value vs Pass‑by‑Reference in PHP Functions
php Courses
php Courses
Jul 22, 2025 · Fundamentals

When Should You Use Pass‑by‑Value, Reference, or Pointer in C++?

Understanding C++ parameter passing—by value, by reference, and by pointer—is essential for optimizing performance, memory usage, and data safety, and this guide explains each method’s characteristics, provides code examples, and offers practical advice on selecting the appropriate technique for different scenarios.

Function ParametersPass by Referencec++
0 likes · 6 min read
When Should You Use Pass‑by‑Value, Reference, or Pointer in C++?
Test Development Learning Exchange
Test Development Learning Exchange
Feb 11, 2025 · Fundamentals

Understanding Python Parameter Passing Mechanisms and Argument Types

Python uses a pass‑by‑object‑reference model, meaning functions receive references to objects; this article explains how mutable and immutable objects behave under this model, describes positional, keyword, default, *args and **kwargs argument types, and provides code examples illustrating each case.

Function ArgumentsImmutable ObjectsPass by Reference
0 likes · 4 min read
Understanding Python Parameter Passing Mechanisms and Argument Types
php Courses
php Courses
Dec 29, 2023 · Backend Development

Understanding PHP Function Parameter Passing: Pass-by-Value, Pass-by-Reference, Default and Variable‑Length Arguments

This article explains PHP function parameter passing, covering pass‑by‑value versus pass‑by‑reference, how to define functions with multiple, default, and variable‑length arguments, and provides clear code examples illustrating each technique for backend developers.

Function ParametersPHPPass by Reference
0 likes · 4 min read
Understanding PHP Function Parameter Passing: Pass-by-Value, Pass-by-Reference, Default and Variable‑Length Arguments