一半君的总结纸

听话只听一半君

#97 如何得到当前已定义的所有全局变量(global variables)?

使用 “env” 命令即可. 我还把结果排了下序,这样比较好找.

string $allGlobals[] = `env`;
$allGlobals = `sort $allGlobals`;

print $allGlobals;

03 Apr 2004

Advertisements

发表评论

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 / 更改 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d 博主赞过: