PHP fprintf()函数用法讲解 PHPfprintf()函数实例把一些文本写入到名为"test.txt"的文本文件:<?php$number=9;$str="Beijing";$ fprintf()函数