PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?php
function function_A()
{
// Declare $varOne in function_A() and return it's value
$varOne = 10;
return $varOne;
}
function function_B($input)
{
// Accept input, and print it out
echo $input;
}
// Send the return value from function_A() to function_B()... no need for globals
function_B(function_A());
?>