• Resolved hooligan

    (@hooligan)


    How do I stop functions like the_author(); and comment_author(); from echoing to the screen. I need to compare the 2 in PHP.

    <?php if(the_author() == comment_author()) { ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter hooligan

    (@hooligan)

    Or can I get those values as strings without using those functions? I just need those two variables to determine if they contain the same string.

    Thanks

    Thread Starter hooligan

    (@hooligan)

    Don’t worry I worked out a way. Used

    for($comments as $comment) : {
    if($comment->comment_author == ”

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Stop functions from echoing’ is closed to new replies.