Target Blank PHP HTML -
i have line , want target blank open link in new window. tried adding but syntax error.
$out .= "\t<li><a href=\"" . $content->geturl() . "\">" . $content . "</a></li>\n";
can please me?
thanks.
from understand of question. you've tried add target="_blank"
while using double-quotes variable too. won't work. you'll have escape characters, or use singlequotes. this:
$out .= "\t<li><a target=\"_blank\"href=\"" . $content->geturl() . "\">" . $content . "</a></li>\n";
this work if $out defined, since you're using .= concatenating assignment operator, appends argument on right side argument on left side.
Comments
Post a Comment