% within a string?
Posted: Mon Mar 25, 2013 5:54 pm
I was working with the DateTime thing, and found that a % allows me to display the date values in a string. Example:
Without the % it returns "a days ago"
What exactly is the % doing, as I've never used it within a string except for when doing a respective output.
Code: Select all
return $interval->format('%a days ago');What exactly is the % doing, as I've never used it within a string except for when doing a respective output.