]+)?>(.*?)'. '#s', $xml, $matches); if ($found != false) { if ($content_only) { return $matches[1]; //ignore the enclosing tags } else { return $matches[0]; //return the full pattern match } } // No match found: return false. return false; } $value = value_in($lang,$xml); $value1 = value_in($lang.'1',$xml); $value2 = value_in($lang.'2',$xml); $value3 = value_in($lang.'3',$xml); //echo "
Content fetched from XML is -- ".$value; /* echo "
"; echo ''.$value.''; echo ''.$value1.''; echo "
"; echo ''.$value2.''; echo ''.$value3.''; */ ?>


Design downloaded from Free Templates - your source for free web templates