PHP Programing language

R4R® PHP Function
(追記) (追記ここまで)
(追記) (追記ここまで)
How Can accessing function parameters without using the argument list
<html>
<head>
<title>accessing function parameters without 
using the argument list </title>
</head>
<body>
<h1>accessing function parameters without 
using the argument list</h1>
<?php
function mean() {
 $sum = 0;
 $size = func_num_args();
 for ($i = 0; $i < $size; $i++) {
 $sum += func_get_arg($i);
 }
 $average = $sum / $size;
 return $average;
}
$mean = mean(18, 28, 38);
?>
</body>
</html>
(追記) (追記ここまで)

Output:

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

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