A percent sign in front a variable...what is that mean? (1 post)

  1. tangcsg
    Posted 4 years ago #

    Hi, I'm a beginner to php coding. Recently I came across a function tag next_post_link, having a format parameter takes value of variable %link. I just don't understand why it's not $link since that's the standard way of naming a php variable. Perhaps there is other meaning of % when it is used in this case. Can anybody tell me what's the difference between % and $ when they are used in front of a php variable?

    <?php next_post_link('%link', 'Next post in category', TRUE, '13'); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic