简体   繁体   English

如何加载部分代码? PHP

[英]How can i load part of code? PHP

how can i load a part of code? 我如何加载部分代码? Something like that: 像这样:

require('script.php',0,40); // require(filename,start_line,end_line)

Is it possible? 可能吗?

No it is not possible. 不,这是不可能的。 Just divide the file into multiple files. 只需将文件分成多个文件即可。 Also if it was possible it would be hard to maintain 另外,如果有可能,将很难维护

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM