<?php $var="pippo"; function printme(&$var) { echo "{$var}\n"; } printme(serialize($var)); ?>
Result:
s:5:"pippo";