str_replace('<p align=center>', '<p align="center">', $string)

However, align argument is deprecated in last version of html.
Use css instead.

Best regards

Fred

raditha dissanayake wrote:

SED wrote:

Is there any function in PHP that changes html in a string from <p
align=center> to <p align="center"> ? (e.g. adding the double quotes)



no but you can do so with sed.



-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to