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);