Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何获取 phpQuery 中当前元素的行号/列号?
我将 phpQuery 框架用于带有自定义错误的验证工具。
谢谢!
__LINE__
上面的代码将获取一个 php 脚本的当前行号。据我所知,没有办法获得字符编号。
你可以试试debug_backtrace()