I see what you are trying to do and I think you are going the long way around it. if all you have it data in a text file seperated by those funny looking characters, then just take them out like this
that would do the same thing you are after and it might not make ®¥© be echoed to the screen if the data was null. plus it would shorten your code.PHP Code:$DataFinal=explode("®¥©",$FromFile);
// Listing the array inside a loop and echo about it.
while (list($key,$current)=each($DataFinal)){
echo your stuff here.
}
if you don't want that then the only thing I can tell you is to check for ®¥© in the array and if found echo a space.




Reply With Quote