Posted by Ruben van Engelenburg on 10/10/69 11:51
McHenry wrote:
> For example the following is retrieved as a price however it would be easier
> to extract using a regex if the code was first converted to a dollar sign:
>
> <h3>
>
> $249,000
>
> </h3>
Hi McHenry,
You're probably looking for html_entity_decode():
<?php
echo html_entity_decode('<h3>$249,000</h3>');
?>
HTH.
Ruben.
--
http://www.phpforums.nl
Navigation:
[Reply to this message]
|