api

ParseResponse( $response );

return $result;
}

function NewRequest() {
// Clear out all previous values
$this->values = “”;
}

function ParseResponse( $buffer ) {

// Parse the string into lines
$lines = explode( “\n”, $buffer );
$amount_lines = count ($lines);

// Parse lines
for($i = 0; $i < $amount_lines; $i++){ // It is not, parse it $result = explode( "=", $lines[ $i ], 2 ); // Make sure we got 2 strings if ( count( $result ) >= 2 ){

// Trim whitespace and add values
$name = trim( $result[0] );
$value = trim( $result[1] );
$this->values[ $name ] = $value;
}
}

return $this->values;
}
}
?>


Chat openen
Hallo
Kunnen we je helpen?