Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $callFileArray = array (
- "Channel"=>"SIP/200",
- "WaiteTime"=>"20",
- "Context"=>"test",
- "Extension"=>"1",
- "Priority"=>"1",
- "Archive"=>"yes"
- ) ;
- $output_file="file.txt" ;
- foreach ($callFileArray as $key=>$callFileArray) {
- $file=fopen($output_file, $key) ;
- fwrite( $file, "This is a simple test\n" );
- fclose( $file ) ;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement