Revision 671
Added by thorn over 17 years ago
| trunk/wb/framework/functions.php | ||
|---|---|---|
| 830 | 830 |
// the variable name is returned in $match[1], the content in $match[3] |
| 831 | 831 |
if (preg_match('/(\$' .$search .')\s*=\s*("|\')(.*)\2\s*;/', $data, $match)) {
|
| 832 | 832 |
if(strip_tags(trim($match[1])) == '$' .$search) {
|
| 833 |
// variable name matches, return it?s value
|
|
| 833 |
// variable name matches, return it's value
|
|
| 834 | 834 |
$match[3] = ($striptags == true) ? strip_tags($match[3]) : $match[3]; |
| 835 | 835 |
$match[3] = ($convert_to_entities == true) ? htmlentities($match[3]) : $match[3]; |
| 836 | 836 |
return $match[3]; |
Also available in: Unified diff
removed non-ascii character from source