Retrieve 4 numeric values to populate style tag using a Regular Expression
in PHP
I have a field value coming back from mysql for a style tag.
Example:
$data_style = "position:absolute; top:0px; left:700px; width:500px;
height:400px; vertical-align: top; padding-top: 0px; padding-right: 0px;
padding-bottom: 0px; padding-left: 0px; display: list-item;"
I need to change the following 4 "numeric" values on the fly...
top:0px; left:700px; width:500px; height:400px;
What is the best way to do this in PHP?
No comments:
Post a Comment