Dereference MultiLevel (Reference yang di Reference yang di Reference dan selanjutnya)

Misal lihat kode dibawah ini

$multi = 10;
$mmulti = \$multi;
$mmmulti = \$mmulti;
$mmmmulti = \$mmmulti;

print $$mmulti, "\n"; # dereference level 1 ($ + 1)
print $$$mmmulti, "\n"; # dereference level 2 ($ + 2)
print $$$$mmmmulti, "\n"; # dereference level 3 ($ + 3)

.."..Blogging : Programing.."..

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s