I get text from a website via CURL however it has on the end on the original website, however when I return it back to mine, this is just a space(after looking at it in the source), however nothing seems to help even with str_replace, (string), strval() and so on.
Could anyone help?
Current code
$country = $s->fetchBetween('<dt>Country:</dt><dd>','</dd>', $result);
$country = strval($country);
$country = str_replace(" ", "", strval($country));
echo "start-{$country}-end";
exit;
The value on the website that I’m “Curling” appears as
India
Try the following instead.