On February 21, 2003 04:54 am, Wez Furlong wrote: > Look in the archives for that guys original patch; it allowed doing > something like this: > > $foo = array(); > > $foo[] = "some text"; > $foo[] = "more text"; > > file_put_contents("file.txt", $foo); > > and also: > > file_put_contents("file.txt", $foo, $bar, $baz);
I do see the advantage of allowing an array to be passed to allow the function to work as a reverse version of file(), however I am not certain about the usefulness of allowing passage of unlimited number of variables containing the strings to write. Ilia -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php