PHP Programing language

R4R® PHP Function
(追記) (追記ここまで)
(追記) (追記ここまで)
How Can Using Nesting Function
<html>
<head>
<title>	Nesting Function</title>
</head>
<body>
<?php
function myFunction($p,$t) 
{
 function convert_pound($d, $c=1.9) 
 {
 return $d * $c;
 }
 $total = $p + ($p * $t); 
 echo "Total cost in d: $total. Cost in 
 British pounds: " . convert_pound($total);
}
myFunction(18.00,.090);
echo convert_pound(18);
?> 
</body>
</html>
(追記) (追記ここまで)

Output:

(追記) (追記ここまで)
Copyright ©2021-22 r4r.co.in, all rights reserved. Theguestspost.com
Sitemap
Career
Post comment
About us
Subscription
Unsubscription

AltStyle によって変換されたページ (->オリジナル) /