A percent sign in front a variable...what is that mean?
Posted: Thu Sep 08, 2011 4:59 pm
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'); ?>
<?php next_post_link('%link', 'Next post in category', TRUE, '13'); ?>