PHP如何获取txt中的文字

版权声明:转载请注明出处! https://blog.csdn.net/ZouHuiDong/article/details/89789473

如下代码所示:

<?php
	$value=file_get_contents("test.txt");//获取内容并保存到变量value
	echo $value;//输出
?>

猜你喜欢

转载自blog.csdn.net/ZouHuiDong/article/details/89789473