I have a varchar field in my db which contains :
"<?php
$html = 'abc' ;
$ad_content = Agencies_anonymous::getAd($html);
echo $ad_content;
?>"
Now , in my code, I have to read this field value and get the value of the variable $html
.What would be the apt way to do this ?
Supposedly , I have extracted the field value as a string(*$html_string*) in my code .
What will be the appropiate regular expression that I should apply for this ? Or , is there any robust method using string functions ?
Are you using php to do this? Does the statement always look exactly like this?
would get it
or