Alvast bedankt.
2. Ik heb 2 functies. 1 rekent de btw uit. En de ander rekent de winst uit. Alleen als ik dan doe:
btw(winst($string))
Dan komt er een raar antwoord uit.
Bij 10 komt er dan bv, 100 uit.
Appart van elkaar werken ze wel.
Code:
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]function[/COLOR] btw[COLOR= #007700]([/COLOR][COLOR= #0000BB]$omzet[/COLOR][COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$omzet[/COLOR][COLOR= #007700]*[/COLOR][COLOR= #0000BB]1.19[/COLOR][COLOR= #007700];
}
function[/COLOR] winst[COLOR= #007700]([/COLOR][COLOR= #0000BB]$winst[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$invest[/COLOR][COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$invest[/COLOR][COLOR= #007700]-[/COLOR][COLOR= #0000BB]$winst[/COLOR][COLOR= #007700];
}[/COLOR]
?> Alvast bedankt.
