What happens if i echo something before a return in a PHP function? An example of this is the following:
protected function getStockFromGarp($data) {
echo $data." stock returned from call ".$url;
return $data; // Returning $data for future date
}
public function updateStock($sku) {
$entry->this = getStockFromGarp($sku);
}
Which will be the $entry->this
value when calling updateStock($var)?