<?php

class test{
 public $a;

}

function p($b)
{
  $b = $b + 1;
}

$struct = new test;
 
p($struct->a);

printf("%d", $struct->a);

?>