Im trying to get a final output to be '<item>' but Im unable to get working. Could someone point me where Im going wrong. Thanks
<?php $a = '<item rdf:about="http://www.trini0.org">'; $b = preg_replace("/(<item)(\s.*)(>)/i", "$1" . "$3", $a ); echo $b; ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php