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

PHP没有在浏览器中显示任何内容[关闭]

I don't know if it's my code or what, but echo is not showing anything.

<?php
function outside() {
    $GLOBALS['variable'] = 'some value';
    inside();
}

function inside() {
        global $variable;
        echo $variable;
}
?>

You're only defining the functions here. You never actually execute either of them. Try adding:

outside();

after the function definitions.

See it in action here: https://eval.in/79203

近期文章

  • http://mineislab.com/上的PHP redmine-ci
  • Fogbugz XML_API PHP CURL文件上传
  • 将sql文件转储到数据库服务器
  • 在php中将utf8更改为中文单词
  • Rgraph redimension钻孔画布
  • 将背景图片设置为100%
  • 输入链接时重定向用户
  • 为什么这个正则表达式在PHP中并不贪心
  • 如何将数字与日期PHP进行比较
  • Bigcommerce getProducts限制
  • mysqli :: prepare()vs mysqli_stmt :: prepare()
  • htaccess逻辑在vhost中不起作用
  • PHP fetch_array()期望参数1 [重复]
  • php / mysql查找和替换使用REPLACE
  • php运行需要X窗口的脚本
  • Doctrine ODM关联未加载
  • 处理不同的RSS Feed格式
  • php cURL给出空白的响应体
  • Ruby相当于PHP的fopen()方法
  • File Uploader + XML生成脚本[关闭]

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华