WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Help Adding Text to PHP Printed Date (2 posts)

  1. ctvonline
    Member
    Posted 1 year ago #

    I have this php string printing out the year inside of a div:

    _e(date('Y'));

    However how do I add ". All rights reserved." to this?

    I COULD just type it in directly, however I'm sure this isn't the way to do this and using a P tag puts it on another line...something I don't want.

  2. ctvonline
    Member
    Posted 1 year ago #

    Nevermind I got it. Changed the line to:

    echo "© ".date("Y").". All Rights Reserved.";

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.