PHP code in the link?

Hello. There is a piece of code

<a href="<?php echo $child['href'];?>"></a>

But he swears the validator. What's wrong?
July 8th 19 at 16:03
2 answers
July 8th 19 at 16:05
tag <a></a> doubles
in General, the validator always says that he doesn't like what he said?
Yes, I understand that pair. Swears to or attribute href on element a: Illegal character in path segment: space is not allowed.

I understand it is not like a $ sign to him. - London_Kuphal commented on July 8th 19 at 16:08
: do you have that php is not vypolnyaetsya? as the validator can swear on what he sees at all? the render server, gave to the browser. and you need to write without echo long - eveline_Langworth54 commented on July 8th 19 at 16:11
: Perform is executed. But that's why the validator complains can not understand. - London_Kuphal commented on July 8th 19 at 16:14
All. I understand. He swears that the category name has spaces. A url for partitions, it builds on the basis of names. - London_Kuphal commented on July 8th 19 at 16:17
: yeah. Urlencode help - eveline_Langworth54 commented on July 8th 19 at 16:20
July 8th 19 at 16:07
Urlencode help )

Find more questions by tags HTMLPHP