On Wed, 2004-08-25 at 21:11, Syed Ghouse wrote: > Hi All > > Will anybody tell me how to extract the value (say Google) > from the code below: > > <a href="www.google.com">Google(value to extract)</a> > > Thanks and Regards > > Syed
You can use regular expressions for this. $in = '<a href="">meep</a>'; preg_match("|>(.*)</a>|", $in, $out); $foo = $out[1]; print $foo; ...prints: meep This is just a quick and dirty example of how this can be done. -Robby -- /*************************************** * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargon.com * Portland, OR | [EMAIL PROTECTED] * 503.351.4730 | blog.planetargon.com * PHP/PostgreSQL Hosting & Development ****************************************/
signature.asc
Description: This is a digitally signed message part