How to remove a text from a variable? (php)

Posted by Glister on Stack Overflow See other posts from Stack Overflow or by Glister
Published on 2010-04-07T08:20:29Z Indexed on 2010/04/07 8:33 UTC
Read the original article Hit count: 220

Filed under:
|
|

I have a variable $link_item, it's used with echo and gives the strings like

<span class="name">Google</span>http://google.com

How to remove "<span class="name">Google</span>" from string?

It should give just "http://google.com".

Heard it can be done with regex(), please help.

© Stack Overflow or respective owner

Related posts about php

Related posts about remove