| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [1998-03-28 14:32 UTC] jim
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 13:00:02 2025 UTC | 
If a backslash is in a string to fputs, then fputs adds an extra character to the output stream for every backslash for example: $ip="abc\def"; fclose($fp); $fp = fopen("out","w+"); $x=fputs($fp,"$ip"); fclose($fp); File out contains: 61 62 63 5c 64 65 66 00 a b c \ d e f nul The same result will be given for the string "abc\\def".