我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

获取所有PHP变量及其值

Is there any method to get all the PHP variables and its value in a page ?

I searched for it and couldn't find one.

Eg:

$a = 10;

$b = $a + 5;

What I am looking for is a method like

get_all_var() gives output:

$a = 10

$b = 15

You can try with get_defined_vars

近期文章

  • 来自php的Python脚本不提供任何输出
  • 带有一列的SQL - 检查行是否存在
  • 如何使用mysqli查询获取行?
  • 在while循环中使用array_fill
  • PHP Ldap配置文件用户及其嵌套组
  • 在WooCommerce中创建默认变体
  • Cakephp搜索插件filterArgs(如果在数组中则为else)
  • 从mysql表填充的自动完成的输出
  • 使用命名空间在扩展类中访问$ this
  • 如何在没有htaccess的情况下使网址SEO友好
  • CakePHP Auth不允许显示图像
  • 是否可以使用css媒体查询获取移动设备的大小并将其发送到php变量
  • 结合mysql数组
  • 从发送到服务器的字符串中删除“+”(Objective-C到PHP服务器)
  • PHP替换我的文件中的常用单词
  • 使用$ .post()中的数据刷新页面
  • php尝试捕获不捕获异常
  • textarea中的换行符
  • 树结构:验证树的深度级别
  • 使用json的Jquery AJAX函数

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华