Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $e = explode('+',urlencode($_GET['data']));
- function hitung($angka1,$angka2){
- $hasil = $angka1+$angka2;
- return $hasil;
- }
- echo hitung($e[0],$e[1]);
- // contoh rekues: http://localhost/coba.php?data=2+8
- // menghasilkan output: 10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement