<?php function initialiseStr(&$var = null) { if (!isset($var)) { $var = ''; } } initialiseStr($foo); var_dump($foo);
You have javascript disabled. You will not be able to edit any code.