RE: [PHP] String to Stream

From: Date: Fri, 05 Aug 2005 19:03:32 +0000
Subject: RE: [PHP] String to Stream
Groups: php.general 
Request: Send a blank email to php-general+get-220095@lists.php.net to get a copy of this message
[snip] Jay Blanchard wrote: > What, exactly, do you want to accomplish? I want to be able to treat a string as a stream. [/snip] I know C++ and I know what you are talking about here. As I said before, you would have pretty high overhead to do this in PHP. However, if I know what you want to do with the string more specifically (I asked for examples, which you have not given) I can get you to the right PHP functions. PHP does not have a class or function similar to isstringstream (I have not checked phpclasses.org to see if someone has written one, so there might be one there). So, please provide a more precise example. You could always write an extension if the answers I have given are not satisfactory, but I think that PHP has many built in string functions that it can probably manipulate a string any way that you would desire.

« previous php.general (#220095) next »