© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Emil Moe
Senior Data Engineer
You can pass it as a reference
<?php include "example.php"; $bar = ''; foo($bar); echo $bar; // Hello, World! function foo(&$bar) { // do whatever you want to $bar $bar = 'Hello, World!'; }