PHP Programing language

R4R® PHP Function
(追記) (追記ここまで)
(追記) (追記ここまで)
How Can Passing by Reference
When you pass data to a function, what's really passed is a copy of that data. So, for example, if you pass a variable, a copy is made of that variable, and that copy is actually passed to the function.

For example:

<html>
<head>
<title>Passing Reference to Functions </title>
<body>
<h1>Passing Reference to Functions </h1>
<?php
$value = 4;
echo "Before the call, \$value holds $value <br>";
squarer ($value);
echo "After the call, \$value holds $value <br>";
function squarer (&$number)
{
$number *= $number;
}
?>
</body>
</html>
(追記) (追記ここまで)

Output:

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

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