I have this row in a php file. It creates the URL path:
$output = l($image, "article/{$article->aid}", $options);
The output is good, but I want to append ‘#’ sign with a word to it. E. g.:
/articles/example#comments
I have tried with different combinations, but didn’t find the right one. I hoped that the plus sign combination will work, but then it always points to the root:
$output = l($image, "article/{$article->aid}"+"#comments", $options);
Result is "/"
Does someone know how to do this? Thank you!
You can’t concat a string with “+” so instead of
it would be