- printf: documentation ( source)
<?php
class wpq {
private $unreferenced;
public function __get($name) {
return (array)$this->$name;
}
}
function ret_assoc() {
return array('foo' => 'bar');
}
$wpq = new wpq;
$wpq->interesting =& ret_assoc();
$x = $wpq->interesting;
printf("%s\n", $x);