Skip to content
Advertisement

cannot print url data in a required format via php

I need to get url data printed in the following format below

JavaScript

but each time i run the code below am getting something like this below which is not what I want

JavaScript

here is what I have tried

JavaScript

Advertisement

Answer

Try like this HTML code in your variable declaration:

JavaScript

You will get the output like this:

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement