function volumeKubus($s) { return pow($s, 3); } echo "Volume Kubus dengan sisi=4 adalah: " . volumeKubus(4) . "";