[thelist] PHP question
Noah St. Amand
noah at tookish.net
Thu Mar 22 14:51:42 CDT 2007
Matt Warden wrote (3/22/07 3:07 PM):
> Also, what is the content of $html in the above code?
It looks like $html is set a couple of lines earlier:
$html = isset($link['html']) && $link['html'];
... and like $link is an element in the $links array, which is passed to
this function when it's called.
If the span and the a are already arranged in $link['html'], I think
your options are:
1. track down where "$links" is coming from and adjust the HTML in the
links as they're added to this array
2. use a regex inside this function to split up $html and then put it
back together with the span inside the a
Cheers,
Noah
More information about the thelist
mailing list