I'm trying to strip the first 25 characters off of $row2[Doc_Location].
This is located in an html anchor:
Code: Select all
foreach ($cache2 as $row2)
{ if ($row2['Doc_ResID'] == $row['Res_ID'])
{$output .= "<li><a href="substr('$row2[Doc_Location]', 25)">$row2[Doc_Title]</a></li>";}If I use a double quote, I get a syntax error.
How would I go about accomplishing this?
Thanks for your help.