• fargo

    (@fargo)


    Does the following code, replace the 3 end numbers of comment author IP with XXX?

    <?php echo substr_replace(comment_author_IP(),’XXX’,-3); ?>

    I want to show comment author IP but not the last 3 or 2 or 1 number(s). how could it be possible?

    thanks

  • The topic ‘How to trim comment IP?’ is closed to new replies.