References can produce a chain like what jQuery used:
<?php
$a = new test();
echo ($a -> one() -> two() -> one() -> two() -> one() -> two() -> f);
?>
Result return 29.
如上 test 是如何用 References 实现的?
<?php
$a = new test();
echo ($a -> one() -> two() -> one() -> two() -> one() -> two() -> f);
?>
Result return 29.
如上 test 是如何用 References 实现的?