I don't have good knowledge in PHP. I need help with:
Let's suppose a string:
"Why is sky blue? http:www.whyist heskyblue.com/whyisitsoblue/cansomebodymake _it_red"
Ok now for this string, I want to conver the URL mentioned in to link and at a same time I want the URL (since is quite long) be displayed as:
"Why is sky blue? http:www.whyist heskyblue.com/whyisitsob..... ."
How will that be possible using PHP. Please help me with short and easy PHP script to do so. Thanks...
Let's suppose a string:
"Why is sky blue? http:www.whyist heskyblue.com/whyisitsoblue/cansomebodymake _it_red"
Ok now for this string, I want to conver the URL mentioned in to link and at a same time I want the URL (since is quite long) be displayed as:
"Why is sky blue? http:www.whyist heskyblue.com/whyisitsob..... ."
How will that be possible using PHP. Please help me with short and easy PHP script to do so. Thanks...
Comment