Tools, FAQ, Tutorials:
Passing an Argument to a Function in PHP
How To Pass an Argument to a Function? in PHP?
✍: FYIcenter.com
To pass an argument to a function, you need to:
Here is a PHP script on how to use arguments in a function():
<?php
function f2c($f) {
return ($f - 32.0)/1.8;
}
print("Celsius: ".f2c(100.0)."\n");
print("Celsius: ".f2c(-40.0)."\n");
?>
This script will print:
Celsius: 37.777777777778 Celsius: -40
⇒ Variables Are Passed by Values in PHP
⇐ Returning a Value from a Function in PHP
2016-12-24, ∼2077🔥, 0💬
Popular Posts:
Where to find tutorials on Using Azure API Management Publisher Dashboard? Here is a list of tutoria...
How to attach console to a Running Container using the "docker container exec" command? I want to ge...
What is Azure API Management Gateway? Azure API Management Gateway is the Azure Web server that serv...
How to build a test service operation to dump everything from the "context.Request" object in the re...
How to use "json-to-xml" Azure API Policy Statement? The "json-to-xml" Policy Statement allows you t...