PEAR Manual
This manual is provided as a courtesy. It is not an official source. Please check pear.php.net for updated information.
require_once "System.php";
boolean System::&cat (string $args)
boolean System::&cat
Concatenate files. The method uses fopen(), URLs should work too.
string $args - the arguments
boolean - TRUE on success
This function can be called statically.
cat man page
Example 26-1. Using &cat()
$var = System::cat('sample.txt test.txt'); System::cat('sample.txt test.txt > final.txt'); System::cat('sample.txt test.txt >> final.txt');