I have a question and a problem. Well it's the following with cURL I login beauty up so far .. ok but I need to get some information that is inside the html:
<span id="Number">12345678993</span>
<span id="holderName">RAFAELA VERCOSA MARIANO</span>
<span id="expirationDate">11/2019</span>
The function I am using is:
function pegar_oneclick(){
$nome = '';
$html = str_get_html($this->http_response);
foreach($html->getElementById('holderName') as $element){
$text = $element->plaintext;
$text = str_replace(array("\r", "\n", "\t"), ' ', $text);
$nome .= str_replace(' ', '', $text);
}
return $nome;
}
I want to return only the Number , holderName: RAFAELA VERCOSA MARIANO and expirationDate , I do not want anything ready just an orientation of like I should do.