i want to display the following...
print"<a href="">text[1]</a>";
but i got parse erorr.. why?
Yoy probably get an error because you don't escape the quotes using backslashes, like this:
print"<a href=\"\">text[1]</a>";
as well you are not referencing the variable correctly
$text[1]
note the dollar sign