Write a formatted string to a stream in php 4.x

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
OmidReza
Forum Newbie
Posts: 3
Joined: Tue Aug 08, 2006 11:16 pm

Write a formatted string to a stream in php 4.x

Post by OmidReza »

Hello.
I want to write a formatted string to a stream (file) but not in php 5.
In php 5 " fprintf() " do this BUT I have php 4. " fprintf() " only support in php 5 !

Thanks, bye.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

so combine fwrite() and sprintf()
Post Reply