PHP可变大小是否有限制? [英] Is there a limit on PHP Variable Size?

查看:236
本文介绍了PHP可变大小是否有限制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要知道PHP是否有可变的限制大小.我从SQL数据库中获取一个字符串字段,并使用echo在网页上查看它.我遇到的问题是,当我查看网页时,没有看到数据库字段中的所有内容. PHP变量中可以有多少个限制?有没有一种方法可以使PHP从数据库读取整个条目,而不是中途停止?

I need to know if there is a variable limit size with PHP. I'm taking a string field from an SQL database and using echo to view it on a web page. The problem I am running into is that, when I view the web page, I don't see everything that is in the database field. Is there a limit on how much can be in a PHP variable? Is there a way I can make PHP read the entire entry from the database and not stop partway?

推荐答案

解决方案是ini_set('odbc.defaultlrl', 65536);

这篇关于PHP可变大小是否有限制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆