在一个页面中include 了一个外部文件,如
在index.php中 include 了db.class.php;
打开index.php 的时候,无论怎么书写都不会提示db.class.php 中定义的方法
无意中发现,当打开这个文件的时候才会提示。
本文介绍了一种在PHP中使用include引入外部文件时遇到的问题及解决办法。具体来说,在index.php中通过include引入了db.class.php后,如何让IDE正确识别并提示db.class.php中的方法。
在一个页面中include 了一个外部文件,如
在index.php中 include 了db.class.php;
打开index.php 的时候,无论怎么书写都不会提示db.class.php 中定义的方法
无意中发现,当打开这个文件的时候才会提示。
210

被折叠的 条评论
为什么被折叠?