简体   繁体   English

PHP中的file()的FILE_SKIP_NEW_LINES不起作用(v4.4.9)

[英]FILE_SKIP_NEW_LINES for file() in PHP doesn't work (v4.4.9)

I recently switched over to my friends server, and had to edit some code in my files, 我最近切换到朋友服务器,不得不在文件中编辑一些代码,
and noticed that FILE_SKIP_NEW_LINES doesn't seem to work for the file function. 并注意到FILE_SKIP_NEW_LINES似乎不适用于文件功能。

When doing a var_dump on a variable I made with file(), 在使用file()创建的变量上执行var_dump时,
it gives me "[key]" => "[value] " (notice the space after [value]). 它给了我"[key]" => "[value] " (注意[value]后的空格)。
Was this flag not available in version 4.4.9, or what? 该标志在4.4.9版本中不可用,还是什么?

Unfortunately, it's just a web hotel, so he can't update the PHP version. 不幸的是,这只是一家网络酒店,因此他无法更新PHP版本。

Look into the manual , what you suspect is indeed true. 查看手册 ,您怀疑的确是真的。

Prior to PHP 5.0.0 the flags parameter only covered include_path and was enabled with 1 在PHP 5.0.0之前, flags参数仅包含include_path并已启用1

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

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